STL link error on AIX

Discussion in 'C Programming' started by pervinder, Aug 4, 2004.

  1. pervinder

    pervinder Guest

    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
    pervinder, Aug 4, 2004
    #1
    1. Advertising

  2. pervinder

    jacob navia Guest

    "pervinder" <> a écrit dans le message de
    news:...
    > 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++.
    jacob navia, Aug 4, 2004
    #2
    1. Advertising

  3. 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
    Thomas Matthews, Aug 4, 2004
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kevin Spencer

    Re: Link Link Link DANGER WILL ROBINSON!!!

    Kevin Spencer, May 17, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    795
    Kevin Spencer
    May 17, 2005
  2. chriskr7
    Replies:
    0
    Views:
    456
    chriskr7
    Jul 13, 2006
  3. Amber
    Replies:
    1
    Views:
    507
    Ian Collins
    Jun 20, 2007
  4. ClownPleco

    putenv for AIX and ifdef for AIX

    ClownPleco, Aug 22, 2007, in forum: C Programming
    Replies:
    5
    Views:
    1,103
    Thomas Dickey
    Aug 24, 2007
  5. Replies:
    5
    Views:
    185
    Philippe Lucas
    Jul 8, 2005
Loading...

Share This Page