I am using visual studio 2005 with boost 1.340 to extend c++
code in python.
I have successfully compiled and called the
python/example/tutorial/hello.cpp in python using both visual studio 2005 and
bjam.
With my own project c++ code, however, visual studio is
giving me 26 unresolved externals.
geometrypython.obj : error LNK2019: unresolved external
symbol "public: class Matrix & __thiscall Matrix::operator=(class
Matrix const &)" (??4MatrixQAEAAV0ABV0Z) referenced in function
"public: class Atom & __thiscall Atom::operator=(class Atom const
&)" (??4AtomQAEAAV0ABV0Z)
geometrypython.obj : error LNK2019: unresolved external
symbol "public: __thiscall Matrix::~Matrix(void)" (??1MatrixQAEXZ)
referenced in function __unwindfunclet$??0AtomQAEAAVBinary_ifstreamZ$0
geometrypython.obj : error LNK2019: unresolved external
symbol "public: __thiscall Matrix::Matrix(void)" (??0MatrixQAEXZ)
referenced in function "public: __thiscall Atom::Atom(class
Binary_ifstream &)" (??0AtomQAEAAVBinary_ifstreamZ)
geometrypython.obj : error LNK2019: unresolved external
symbol "class Binary_ofstream & __cdecl operator<<(class
Binary_ofstream &,class Matrix const &)"
(??6YAAAVBinary_ofstreamAAV0ABVMatrixZ) referenced in function
"class Binary_ofstream & __cdecl operator<<(class
Binary_ofstream &,class Atom const &)"
(??6YAAAVBinary_ofstreamAAV0ABVAtomZ)
and so on.
With bjam, I get errors such as
・util.hxx(319) : error C2433: '<<' : 'friend'
not permitted on data declarations
・util.hxx(319) : error C2530: '<<' : references
must be initialized