Problem with C++ on ubuntu 14.04 lts.

Hello

I am trying to build an executable file using the fallow commands

alexandre@NCC1701D:~/panda3d$ g++ -c first.cxx -o filename.o -fPIC -O2 -I{/usr/include/python2.7} -I{/usr/include/panda3}
alexandre@NCC1701D:~/panda3d$ g++ filename.o -o filename -fPIC -L{panda3dlibs} -lp3framework -lpanda -lpandafx -lpandaexpress -lp3dtoolconfig -lp3dtool -lp3pystub -lp3direct
/usr/bin/ld: cannot find -lp3framework
/usr/bin/ld: cannot find -lpanda
/usr/bin/ld: cannot find -lpandafx
/usr/bin/ld: cannot find -lpandaexpress
/usr/bin/ld: cannot find -lp3dtoolconfig
/usr/bin/ld: cannot find -lp3dtool
/usr/bin/ld: cannot find -lp3pystub
/usr/bin/ld: cannot find -lp3direct
collect2: error: ld returned 1 exit status

I do not know where panda3dlibs was installed nether how to install it.
The python examples runs very well, but the c++ code does not work.
I work with Linux (ubuntu 14.04 lts).
T u.

You shouldn’t use { and }. Just specify the paths like this:

-I/usr/include/python2.7 -I/usr/include/panda3d

And in the linker command-line:

-L/usr/lib/panda3d

You may have to adjust it to a different location, such as /usr/lib64/panda3d, or /usr/lib/x86_64-linux-gnu/panda3d, or wherever the libraries are located.

Thank you for your help.
Unfortunately, the libraries are not in anyone of the directors cited by you. Indeed, there is not a place where the libraries were installed. I have looked for in all my system but I have found absolutely nothing. I believe my installation process was made correctly. Any more ideas?

Which exact method did you use to install Panda3D? Which .deb from the download page, or which commands to compile it?

Are you on a 64-bits or 32-bits system?