Linking problem using Eclipse and C++

I am using Ubuntu, I installed Panda3D 1.9 from the repo and I am using eclipse with the following include/library configuration:

I got the following errors while compiling:

Does someboy know how to fix this? Thanks.

Hmm, that’s strange, p3pystub is supposed to contain these symbols. Hmm, sometimes the linker is strict about the order of libraries, perhaps you should move the p3pystub option to the end of the command or so?

If that doesn’t work, does “nm” of the p3pystub library show that these symbols exist?
Could you try linking with -lpython2.7 (or whatever version your distro uses) instead of -lp3pystub to see if that would work?

Moving p3pystub to the bottom made it work, thanks.

Although I fixed it before adding python2.7 at the bottom.

Good to know. For the record, you should never link both p3pystub and python2.7; if you don’t need Python, you should use the former, otherwise you should use the latter.