Not logged inGosu Forums
Forum back to Help Search Register Login
Up Topic Gosu / Gosu Exchange / Library linking errors on Windows
- - By Skelv Date 2011-01-18 22:13
Hi everybody. I've been trying to use Gosu on Windows with Netbeans+MinGW. Including the header files was OK, but during compilation I get tons of "undefined reference to..." errors (e.g., "undefined reference to `Gosu::Window::show()'"). I think I may not be linking the libraries correctly, but I've already gone to Properties/Build/Linker/Libraries and added Gosu and GosuDebug. Is there anything else I'm missing? Any help will be appreciated.
Parent - - By jlnr (dev) Date 2011-01-19 00:15
MinGW cannot read the precompiled files because they are in Microsoft's library format. If you can get NetBeans to use the MS compiler (I think it's possible), then it should work.

You are pretty much on your own with everything except MSVC though :)
Parent - - By RunnerPack Date 2012-03-27 05:27
I compiled Gosu myself with MinGW (no NetBeans; just in a CMD terminal) and I still get the undefined references. At first, I suspected this was because some of the prereq's (e.g. FreeImage) are only supplied as COFF .lib's, but Gosu seemed to link with them fine, and some of the un. refs. are to Gosu itself.

I followed the Wiki stuff to get Gosu to build (which went very smoothly) but it's a bit vague on what to do after that (i.e. compiling something you wrote and linking to Gosu).

Any help from someone who's actually done this would be greatly appreciated!
Parent - By jlnr (dev) Date 2012-03-28 10:09
I have asked Seisatsu on IRC since he and Jamer originally assembled the MinGW Makefile. It seems they had gotten it to compile, but experienced runtime crashes and gave up on MinGW.

I don't understand the problem since Gosu is not using any fancy magic. If you want to go on an adventure, feel free to experiment with it :) In the meantime, I have slapped a big warning on the guide in the wiki though.
Up Topic Gosu / Gosu Exchange / Library linking errors on Windows

Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill