boost.python class constructor error

Hi all,
I'm trying out boost.python to use c++ code in python.
My problem is this: In my c++ code, if i declare the class constructor in
the header file, and define it in the cpp file, bjam throws a LNK2019
unresolved symbol error. The problem does not occur if i define the
constructor in the header file itself.
My code is shown below:
*Test1.h:*
#include

On Thu, Mar 11, 2010 at 7:26 PM, hitesh dhiman
Hi all, I'm trying out boost.python to use c++ code in python. My problem is this: In my c++ code, if i declare the class constructor in the header file, and define it in the cpp file, bjam throws a LNK2019 unresolved symbol error. The problem does not occur if i define the constructor in the header file itself.
That LNK2019 error means you forgot to link in the boost python and/or actual python libraries.
participants (2)
-
hitesh dhiman
-
OvermindDL1