Boost logo

Boost-Build :

From: Sung W. Cho (deuxphoria_at_[hidden])
Date: 2007-06-01 11:30:08


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_at_ABV0@@Z) referenced in function "public: class Atom &
__thiscall Atom::operator=(class Atom const &)" (??4Atom@@QAEAAV0_at_ABV0@@Z)

geometrypython.obj : error LNK2019: unresolved external symbol "public:
__thiscall Matrix::~Matrix(void)" (??1Matrix@@QAE_at_XZ) referenced in
function __unwindfunclet$??0Atom@@QAE_at_AAVBinary_ifstream@@@Z$0

geometrypython.obj : error LNK2019: unresolved external symbol "public:
__thiscall Matrix::Matrix(void)" (??0Matrix@@QAE_at_XZ) referenced in function
"public: __thiscall Atom::Atom(class Binary_ifstream &)"
(??0Atom@@QAE_at_AAVBinary_ifstream@@@Z)

geometrypython.obj : error LNK2019: unresolved external symbol "class
Binary_ofstream & __cdecl operator<<(class Binary_ofstream &,class Matrix
const &)" (??6_at_YAAAVBinary_ofstream@@AAV0_at_ABVMatrix@@@Z) referenced in
function "class Binary_ofstream & __cdecl operator<<(class Binary_ofstream
&,class Atom const &)" (??6_at_YAAAVBinary_ofstream@@AAV0_at_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_at_[hidden]
 



Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk