STL link error on AIX

P

pervinder

Hi,
I have a c application which uses a library (libmatrix.a) which has stl usage
But while link stage, i get an error on AIX (IBM) platform ( comp - xlC_r va6)

ld: 0711-317 ERROR: Undefined symbol: _STL::cout
ld: 0711-317 ERROR: Undefined symbol: ._STL::ios_base::_Loc_init::_Loc_init()
ld: 0711-317 ERROR: Undefined symbol: ._STL::ios_base::Init::Init()
ld: 0711-317 ERROR: Undefined symbol: ._STL::ios_base::_Loc_init::~_Loc_init()
ld: 0711-317 ERROR: Undefined symbol: ._STL::ios_base::Init::~Init()

Can someone suggest me as what could be the reason for this error ?
I did not see this error on Sun and linux platform(s)

Regards,
~Pervinder
 
J

jacob navia

pervinder said:
Hi,
I have a c application which uses a library (libmatrix.a) which has stl usage
But while link stage, i get an error on AIX (IBM) platform ( comp - xlC_r va6)

ld: 0711-317 ERROR: Undefined symbol: _STL::cout
ld: 0711-317 ERROR: Undefined symbol: .._STL::ios_base::_Loc_init::_Loc_init()
ld: 0711-317 ERROR: Undefined symbol: ._STL::ios_base::Init::Init()
ld: 0711-317 ERROR: Undefined symbol: .._STL::ios_base::_Loc_init::~_Loc_init()
ld: 0711-317 ERROR: Undefined symbol: ._STL::ios_base::Init::~Init()

Can someone suggest me as what could be the reason for this error ?
I did not see this error on Sun and linux platform(s)

Regards,
~Pervinder

Wrong newsgroup. Ask in comp.lang.c++.
 
T

Thomas Matthews

pervinder said:
Hi,
I have a c application which uses a library (libmatrix.a) which has stl usage
But while link stage, i get an error on AIX (IBM) platform ( comp - xlC_r va6)

ld: 0711-317 ERROR: Undefined symbol: _STL::cout
ld: 0711-317 ERROR: Undefined symbol: ._STL::ios_base::_Loc_init::_Loc_init()
ld: 0711-317 ERROR: Undefined symbol: ._STL::ios_base::Init::Init()
ld: 0711-317 ERROR: Undefined symbol: ._STL::ios_base::_Loc_init::~_Loc_init()
ld: 0711-317 ERROR: Undefined symbol: ._STL::ios_base::Init::~Init()

Can someone suggest me as what could be the reason for this error ?
I did not see this error on Sun and linux platform(s)

Regards,
~Pervinder

Perhaps you need to compiler your program as a C++ program?


--
Thomas Matthews

C++ newsgroup welcome message:
http://www.slack.net/~shiva/welcome.txt
C++ Faq: http://www.parashift.com/c++-faq-lite
C Faq: http://www.eskimo.com/~scs/c-faq/top.html
alt.comp.lang.learn.c-c++ faq:
http://www.comeaucomputing.com/learn/faq/
Other sites:
http://www.josuttis.com -- C++ STL Library book
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top