How to set up netbeans IDE to work with panda.

I have panda on my linux computer and it worked with python perfectly but now i would like to set it up with netbeans and C++ so i tried the sample hello world program to see if it would not just run automatically but it did not.
Instead i got this error:
main.cpp:1:28: error: pandaFramework.h: No such file or directory
main.cpp:2:25: error: pandaSystem.h: No such file or directory

Does anyone know what i should do?


You need to add /usr/include/panda3d to the include path in netbeans.

can you built a panda3d proyect in netbeans, written in c++?