Hey all.
I develop on Linux, and compile windows binaries from here using mingw32. I use GCC for all my compiling.
I compiled Box2D for both linux and windows (.a and .so) put them in the correct folders, put the "-lbox2d" tag into my makefiles, and it worked fine. Until, i put this line of code in
at which point, it started coughing up compiler errors, (in the link stage). Note, that the linux version compiled fine, when i tried to compile for windows i got this
So, im totally confused. Usually an error like this can be solved with changing the linking order in my makefiles, but not this time. Ill put my makefiles now.
Windows
Linux
Im totally stumped here. Any help?
I develop on Linux, and compile windows binaries from here using mingw32. I use GCC for all my compiling.
I compiled Box2D for both linux and windows (.a and .so) put them in the correct folders, put the "-lbox2d" tag into my makefiles, and it worked fine. Until, i put this line of code in
Code:
pworld = new b2World(worldAABB, gravity, true);
at which point, it started coughing up compiler errors, (in the link stage). Note, that the linux version compiled fine, when i tried to compile for windows i got this
Code:
/tmp/ccJd63Hj.o:gmap.cpp:(.text+0x25b): undefined reference to `b2World::b2World(b2AABB const&, b2Vec2 const&, bool)'
So, im totally confused. Usually an error like this can be solved with changing the linking order in my makefiles, but not this time. Ill put my makefiles now.
Windows
Code:
all:
i586-mingw32msvc-g++ -o bin/win/BlackAurora.exe Source/*.cpp -lmingw32 -lSDLmain -lSDL -lSDL_image -mwindows -lopengl32 -lbox2d
i586-mingw32msvc-g++ -o bin/win/BlackAurora.exe Source/*.cpp -lmingw32 -lSDLmain -lSDL -lSDL_image -mwindows -lopengl32 -lbox2d
Linux
Code:
all:
g++ -o bin/linux/BlackAurora Source/*.cpp -lbox2d -lSDL -lGL -lSDL_image
g++ -o bin/linux/BlackAurora Source/*.cpp -lbox2d -lSDL -lGL -lSDL_image
Im totally stumped here. Any help?