It looks like you're new here. If you want to get involved, click one of these buttons!
DEL C:UsersCarlProgrammeringORXTestORXTest.exe
C:mingw64ing++ -I C:mingw64orx-1.2dev-msvs2008include -c standAlone.cpp
C:mingw64ing++ -I C:mingw64orx-1.2dev-msvs2008include -c main.cpp
C:mingw64ing++ -o ORXTest.exe standAlone.o main.o orx.lib
C:UsersCarlProgrammeringORXTestORXTest.exe
main.o:main.cpp:(.text+0x1502): undefined reference to `__imp_orxModule_AddDepen
dency'
main.o:main.cpp:(.text+0x1515): undefined reference to `__imp_orxModule_AddDepen
dency'
main.o:main.cpp:(.text+0x1528): undefined reference to `__imp_orxModule_AddDepen
dency'
main.o:main.cpp:(.text+0x153b): undefined reference to `__imp_orxModule_AddDepen
dency'
Comments
You're using the Visual Studio 2008 binaries with gcc and that won't work, as you have noticed!
If you want to use gcc on windows, I'd suggest using the MinGW package instead. Inside you'll get the liborx.a for linking purposes and another version of orx.dll for execution.
Let me know if this fixes your issue. Don't hesitate if you have any other questions!
Well now I feel stupid, I just took the top download
Okay, so I'm now using the mingw binaries and the following build script:
But I still get the same errors as before
What to do?
EDIT: I'm on a 64-bit system, could that have something to do with it? I'm guessing the libraries are 32-bit which means I can't link with them, is there a 64-bit version of the libraries, I cant seem to find one in the downloads section?
The 1.2 release was made with 4.2.x and is not compatible with latest 4.5.x. It might also be the 32b/64b difference.
Next version, 1.3, will be compiled with gcc 4.5.x but will still be 32b, unless someone offers to compile a 64b version.
You can get orx's source and compile it yourself. It compiles out of the box as long as you get both src and extern packages (or sync the svn, which will give you a much more recent and capable version of orx
Hope this helps!
The default plugins use the following external dependencies: SOIL, OpenAL-soft, GLFW, libsndfile and Box2D. All of these have a codelite project for compiling them with mingw.
Are you sure it's not an incompatibility with gcc instead? Which version are you using? If it's 4.5.x, I'd recommend trying to sync the svn version as the external libraries have all been recompiled with that version of gcc. Which means you would only have to compile orx if that were to be the real issue.
Good luck!
I suggest trying the svn and everything should work fine (orx compiles out of the box if you sync the whole /orx/trunk).