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.
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 :)
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!
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.
Powered by mwForum 2.29.7 © 1999-2015 Markus Wichitill