News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

PhysX with Code::Blocks

Started by AnTeevY, November 11, 2007, 09:49:15 PM

Previous topic - Next topic

AnTeevY

Did anyone manage to compile the PhysX Demos with C::B? I run from error into error, from compiler errors to linker errors...

Now I get some linker errors:

Debug\NxBoxes.o: In function `Z16KeyboardCallbackhii':
C:/Progging/Projects/yeahman/NxBoxes.cpp:161: undefined reference to `PerfRenderer::toggleEnable()'
Debug\NxBoxes.o: In function `Z14RenderCallbackv':
C:/Progging/Projects/yeahman/NxBoxes.cpp:280: undefined reference to `PerfRenderer::render(NxProfileData const*, int, int)'
Debug\NxBoxes.o: In function `Z41__static_initialization_and_destruction_0ii':
C:/Progging/Projects/yeahman/NxBoxes.cpp:26: undefined reference to `PerfRenderer::PerfRenderer()'
collect2: ld returned 1 exit status


I don't know which lib I forgot to include...

Belgabor

There's a "cheat" I use in this situation: Use the windows search function and put a significant part of the undefined reference as token to search for inside files. Seach the directory that contains the libs.
(On linux you can use grep for the same effect)

AnTeevY

I don't really understand what you mean :D In which files should I search? I've included all possible libs of PhysX without success. Also, I'm on Vista and I can't find the possibility to seach inside files as it was on XP.

Belgabor

Ok, that's a pity. Look in the include headers for PhysX, maybe there are #ifdef's around these functions and PhysX was compiled with different preprocessor variables defined.