Hello,
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 &)" (??4Matrix@@QAEAAV0@ABV0@@Z) referenced in function
"public: class Atom & __thiscall Atom::operator=(class Atom const
&)" (??4Atom@@QAEAAV0@ABV0@@Z)
geometrypython.obj : error LNK2019: unresolved external
symbol "public: __thiscall Matrix::~Matrix(void)" (??1Matrix@@QAE@XZ)
referenced in function __unwindfunclet$??0Atom@@QAE@AAVBinary_ifstream@@@Z$0
geometrypython.obj : error LNK2019: unresolved external
symbol "public: __thiscall Matrix::Matrix(void)" (??0Matrix@@QAE@XZ)
referenced in function "public: __thiscall Atom::Atom(class
Binary_ifstream &)" (??0Atom@@QAE@AAVBinary_ifstream@@@Z)
geometrypython.obj : error LNK2019: unresolved external
symbol "class Binary_ofstream & __cdecl operator<<(class
Binary_ofstream &,class Matrix const &)"
(??6@YAAAVBinary_ofstream@@AAV0@ABVMatrix@@@Z) referenced in function
"class Binary_ofstream & __cdecl operator<<(class
Binary_ofstream &,class Atom const &)"
(??6@YAAAVBinary_ofstream@@AAV0@ABVAtom@@@Z)
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
・\util.hxx(319) : error C2238: unexpected token(s)
preceding ';'
・\util.hxx(321) : error C2143: syntax error : missing
';' before '<'
・\util.hxx(321) : error C2433: '>>' : 'friend'
not permitted on data declarations
・\util.hxx(321) : error C2530: '>>' : references
must be initialized
and so on.
I do have using msvc : 8.0 ; stated in user-config.jam of
the tools/build/v2 directory.
I tried searching through the searchable archives of the
mailing list, but no solution so far.
I am an intermediate programmer at best. Any help would be
very appreciated. Thank you.
--
繕失据
Sung
W. Cho
deuxphoria@gmail.com