compiler search directories? i dont know what that means.
Sorry; I should have clarified:
Project->Build options...->Search directories (tab)There are several folders with headers. Should I put any folder with header files into the same place?
One should never move the files of an SDK (unless, of course, they are themselves writing the SDK - not using it). What I had been referring to was adding the
location(s) of the headers to
Project->Build options...->Search directories (tab)->Compiler (tab). From the names of the folders, I would guess the one you need might be
PhysXAPI. To determine this definitively, open up a PhysX sample project (which I assume they included), and look for an
#included file; then find the physical location of this file within the SDK. The other (better) option would be to ask someone on a NVIDIA forum which folder contains the SDK's headers.
Using Windows Explorer, search the PhysX SDK for
*.lib and
*.a - there should be a directory containing several of these (although, likely of only one, not both, extension). Add this directory to
Project->Build options...->Search directories (tab)->Linker (tab). Also, add the names of these files to
Project->Build options...->Linker settings (tab)->Link libraries.
After these steps, Code::Blocks should be able to compile any sample PhysX code you were provided with (working under the assumption that PhysX is compatible with GCC/MinGW).
Edit: after a bit of searching, I came up with
http://mmmovania.blogspot.com/2011/05/getting-started-with-physx-3.html and
http://about.something.pl/art/getting-started-with-physx-sdk-3-0-on-linux.html. You should try following these instructions to see if they can be applied to Code::Blocks + MinGW. Be warned, however, that I also saw several mentions saying MinGW was incompatible - you may be forced to install the Microsoft compiler (although you can still use Code::Blocks to run it).