this is what im getting in eclipse and ive double checked it uses
gcc 4.5.2
i have the includes right
i have the libs set in the right place
this is wht it spews and yes i named it fxth after 5 tries thinking i had it loaded wrong
Description Resource Path Location Type
make: *** [fxth.exe] Error 1 fxth C/C++ Problem
more undefined references to `[email protected][email protected]' follow fxth line 113 C/C++ Problem
undefined reference to `_imp___orxDebug_Log' main.cpp /fxth line 234 C/C++ Problem
undefined reference to `_imp___orxDebug_Log' main.cpp /fxth line 265 C/C++ Problem
undefined reference to `_imp___orxDebug_Log' main.cpp /fxth line 269 C/C++ Problem
undefined reference to `_imp___orxDebug_Log' main.cpp /fxth line 286 C/C++ Problem
undefined reference to `_imp___orxDebug_Log' main.cpp /fxth line 305 C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 456, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 387, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 434, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 410, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 197 C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 445, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 428, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 437, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 259 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 261 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 260 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 262 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 295 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 295 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 302 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 188 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 209 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 185 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 207 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 188 C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 420, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 108, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 109, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 110, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 111, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 112, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 119, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 448, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 452, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 407, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 395, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 398, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 401, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 133 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 139 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 146 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 147 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 136 C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 413, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 404, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 213 C/C++ Problem
'orxCOLOR* orxColor_FromHSLToRGB(orxCOLOR*, const orxCOLOR*)' defined but not used fxth line 468, external location: C:orx-dev-mingwincludedisplayorxDisplay.h C/C++ Problem
'orxCOLOR* orxColor_FromHSVToRGB(orxCOLOR*, const orxCOLOR*)' defined but not used fxth line 637, external location: C:orx-dev-mingwincludedisplayorxDisplay.h C/C++ Problem
'orxCOLOR* orxColor_FromRGBToHSL(orxCOLOR*, const orxCOLOR*)' defined but not used fxth line 391, external location: C:orx-dev-mingwincludedisplayorxDisplay.h C/C++ Problem
'orxCOLOR* orxColor_FromRGBToHSV(orxCOLOR*, const orxCOLOR*)' defined but not used fxth line 562, external location: C:orx-dev-mingwincludedisplayorxDisplay.h C/C++ Problem
'orxU32 orxString_PrintUTF8Character(orxCHAR*, orxU32, orxU32)' defined but not used fxth line 276, external location: C:orx-dev-mingwincludeutilsorxString.h C/C++ Problem
Everytime you see missing symbols beginning with _imp_, it means you have a static/dynamic library mismatch.
In this case it's likely that you have built a static version of the orx library while the tutorial expects a dynamic one.
Two way to fix this:
- either build the dynamic version (likely to be dynamic embedded release) and copy the include files, the link library (liborx.a) and the runtime library (orx.dll) from code/lib/dynamic
- or with the static library (liborx.a) that you get from code/lib/static when building the static embedded release version, you need to add a preprocessor define to your project: __orxSTATIC__, but in this case you don't need the runtime library (orx.dll).
Let me know if this fixed your problem.
PS: there should be more or less explanations on all this in the README file.
It's a good setup except orx's library actually lies in c:orxlibdynamic.
Liborx.a should be there. I haven't used eclipse/cdt in years so I don't remember all the setup stages for it.
Basically you need the link library accessible somewhere, the runtime library in the same folder as your executable.
For the debug build you also need to specify the preprocessor define __orxDEBUG__.
Oh I thought you already synced the svn.
Well, once you've synced it, you need to compile the mingw version using codelite. The project file is in orx/code/build.
are there any special settings to the codelite workspace? because in there it compiles but it wont compile if i remake the workspace and add all the files
Mmh, I'd need more details of what works and what doesn't in order to thelp you.
I just synced the svn and built win32 versions with codelite (win32 embedded dynamic debug/profile/release).
I got the link and runtime libraries in orx/code/lib/dynamic.
I got the launcher in orx/code/bin as well as the runtime libraries (copied from orx/code/lib/dynamic). If I run orx/code/bin/orx.exe I get my playground (4 platforms and bouncing balls/texts spawned with left click, right click adds a wobble effect on the object under the cursor and middle click toggles a simple custom shader).
Did you get all this on your side or is there something missing?
In more details, here are the files that are built when you compile the 3 versions mentioned above with codelite:
In orx/code/lib/dynamic:
liborx.a
liborxd.a
liborxp.a
orx.dll
orxd.dll
orxp.dll
In orx/code/bin:
orx.exe
orxd.exe
orxp.exe
orx.dll
orxd.dll
orxp.dll
The .a/.dll files are the only things you need (in addition to the .h include files).
For your own project, you simply need to set the link path to orx/code/lib/dynamic and the include path to orx/code/include.
You also need to copy the .dll files to where your own project's exe is compiled in order to run it.
For the debug version of your project, you need to specify __orxDEBUG__ as a preprocessor define and for the profile version (if you want one), you need to define __orxPROFILE__.
Also, just to make sure, you're using gcc 4.5.0, isn't it?
If you're using an older version you'll need to recompile the external dependencies (only GLFW, Box2D, libsndfile, OpenAL-Soft and SOIL). They're all located in orx/extern and have either the native project files or project files I created for codelite when none were provided by the original authors.
My guess is that you don't want to go down that road but use a newer version of gcc instead.
no the sandbox bit works fine but when i try to make a new project and use tutorial 10 as a base it runs fine but will not generate a exe yet when i hit run from withing codelite it runs i assume its me screwing something up in codelite
Comments
gcc 4.5.2
i have the includes right
i have the libs set in the right place
this is wht it spews and yes i named it fxth after 5 tries thinking i had it loaded wrong
Description Resource Path Location Type
make: *** [fxth.exe] Error 1 fxth C/C++ Problem
more undefined references to `[email protected][email protected]' follow fxth line 113 C/C++ Problem
undefined reference to `_imp___orxDebug_Log' main.cpp /fxth line 234 C/C++ Problem
undefined reference to `_imp___orxDebug_Log' main.cpp /fxth line 265 C/C++ Problem
undefined reference to `_imp___orxDebug_Log' main.cpp /fxth line 269 C/C++ Problem
undefined reference to `_imp___orxDebug_Log' main.cpp /fxth line 286 C/C++ Problem
undefined reference to `_imp___orxDebug_Log' main.cpp /fxth line 305 C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 456, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 387, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 434, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 410, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 197 C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 445, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 428, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 437, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 259 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 261 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 260 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 262 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 295 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 295 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 302 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 188 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 209 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 185 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 207 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 188 C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 420, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 108, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 109, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 110, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 111, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 112, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 119, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 448, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 452, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 407, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 395, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 398, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 401, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 133 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 139 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 146 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 147 C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 136 C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 413, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' fxth line 404, external location: C:orx-dev-mingwincludeorx.h C/C++ Problem
undefined reference to `[email protected][email protected]' main.cpp /fxth line 213 C/C++ Problem
'orxCOLOR* orxColor_FromHSLToRGB(orxCOLOR*, const orxCOLOR*)' defined but not used fxth line 468, external location: C:orx-dev-mingwincludedisplayorxDisplay.h C/C++ Problem
'orxCOLOR* orxColor_FromHSVToRGB(orxCOLOR*, const orxCOLOR*)' defined but not used fxth line 637, external location: C:orx-dev-mingwincludedisplayorxDisplay.h C/C++ Problem
'orxCOLOR* orxColor_FromRGBToHSL(orxCOLOR*, const orxCOLOR*)' defined but not used fxth line 391, external location: C:orx-dev-mingwincludedisplayorxDisplay.h C/C++ Problem
'orxCOLOR* orxColor_FromRGBToHSV(orxCOLOR*, const orxCOLOR*)' defined but not used fxth line 562, external location: C:orx-dev-mingwincludedisplayorxDisplay.h C/C++ Problem
'orxU32 orxString_PrintUTF8Character(orxCHAR*, orxU32, orxU32)' defined but not used fxth line 276, external location: C:orx-dev-mingwincludeutilsorxString.h C/C++ Problem
Everytime you see missing symbols beginning with _imp_, it means you have a static/dynamic library mismatch.
In this case it's likely that you have built a static version of the orx library while the tutorial expects a dynamic one.
Two way to fix this:
- either build the dynamic version (likely to be dynamic embedded release) and copy the include files, the link library (liborx.a) and the runtime library (orx.dll) from code/lib/dynamic
- or with the static library (liborx.a) that you get from code/lib/static when building the static embedded release version, you need to add a preprocessor define to your project: __orxSTATIC__, but in this case you don't need the runtime library (orx.dll).
Let me know if this fixed your problem.
PS: there should be more or less explanations on all this in the README file.
c:orxinclude
to my include lines and
c:orxlib
to the library includes
this is the same way i set up when i was working with sdl directly so thats what i expected to make this work
and yes it fixed the gint spew of errors but now its being.... dificult
cannot find liborx.a.....
ive directly added it as a single resource too and ohh yes it is indeed there
Liborx.a should be there. I haven't used eclipse/cdt in years so I don't remember all the setup stages for it.
Basically you need the link library accessible somewhere, the runtime library in the same folder as your executable.
For the debug build you also need to specify the preprocessor define __orxDEBUG__.
Well, once you've synced it, you need to compile the mingw version using codelite. The project file is in orx/code/build.
I just synced the svn and built win32 versions with codelite (win32 embedded dynamic debug/profile/release).
I got the link and runtime libraries in orx/code/lib/dynamic.
I got the launcher in orx/code/bin as well as the runtime libraries (copied from orx/code/lib/dynamic). If I run orx/code/bin/orx.exe I get my playground (4 platforms and bouncing balls/texts spawned with left click, right click adds a wobble effect on the object under the cursor and middle click toggles a simple custom shader).
Did you get all this on your side or is there something missing?
In orx/code/lib/dynamic:
liborx.a
liborxd.a
liborxp.a
orx.dll
orxd.dll
orxp.dll
In orx/code/bin:
orx.exe
orxd.exe
orxp.exe
orx.dll
orxd.dll
orxp.dll
The .a/.dll files are the only things you need (in addition to the .h include files).
For your own project, you simply need to set the link path to orx/code/lib/dynamic and the include path to orx/code/include.
You also need to copy the .dll files to where your own project's exe is compiled in order to run it.
For the debug version of your project, you need to specify __orxDEBUG__ as a preprocessor define and for the profile version (if you want one), you need to define __orxPROFILE__.
I think that sums up everything.
If you're using an older version you'll need to recompile the external dependencies (only GLFW, Box2D, libsndfile, OpenAL-Soft and SOIL). They're all located in orx/extern and have either the native project files or project files I created for codelite when none were provided by the original authors.
My guess is that you don't want to go down that road but use a newer version of gcc instead.
Maybe it's a path/name issue and you're not looking for what was actually created by codelite?
EDIT: I have to go run an errand and won't be there for a couple of hours. Hopefully you'll find your issue soon enough.