Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   C Programming (http://www.velocityreviews.com/forums/f42-c-programming.html)
-   -   STL link error on AIX (http://www.velocityreviews.com/forums/t434762-stl-link-error-on-aix.html)

pervinder 08-04-2004 12:14 PM

STL link error on AIX
 
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

jacob navia 08-04-2004 12:42 PM

Re: STL link error on AIX
 

"pervinder" <pervinder@gmail.com> a écrit dans le message de
news:909863a4.0408040414.53ddfd77@posting.google.c om...
> 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++.



Thomas Matthews 08-04-2004 02:11 PM

Re: STL link error on AIX
 
pervinder wrote:

> 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



All times are GMT. The time now is 06:03 AM.

Powered by vBulletin®. Copyright ©2000 - 2014, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.