Skip to main content
NetBeans 6.9.1        

We are taking for granted that your NetBeans has MinGW configured and compiling .c normally.
Firstly, create a new Project as C++ Application, then open the project rroperties.

We are going to configure the debug settings next.

DEBUG


In C++ Compiler > Include Directories:
Path_to_Ogre/include
Path_to_Ogre/include/OIS
Path_to_Ogre/include/OGRE
Path_to_Ogre/Samples/Common/include
Path_to_Ogre/boost

Image


Pre-Processor Definition:
WIN32
_DEBUG
_WINDOWS

In Linker > Libraries:
libOgreMain_d.dll.a
libOIS_d.dll.a

Note: You can select these libraries by clicking the button ".." on the right of the field and clicking "Add Library".

Image

Additional Directories Libraries:
Path_to_Ogre/lib/debug
Path_to_Ogre/boost/lib


In Execute > Execute Directory:
Path_to_Ogre\bin\Debug

Image


RELEASE


In C++ Compiler

Same as in the debug settings

Pre-Processor Definition:
WIN32
_NDEBUG
_WINDOWS

In Linker > Libraries:
Netbeans is going to automatically set the libraries based on those found in debug configurations

Additional Directories Libraries:
Path_to_Ogre/lib/release
Path_to_Ogre/boost/lib

In Execute > Execute Directory:
Path_to_Ogre\bin\Release