Undefined symbol with g++

Discussion in 'C++' started by saurabhverma78@gmail.com, Jul 16, 2008.

  1. Guest

    Hello,
    I am creating an executable using g++. I am gettinng the symbol
    '_ZNSaIcEC1Ev' undefined in my executable. This symbol is there in a
    static library being used to build this executable.
    I am passing libstdc++.a also which has this symbol. Can you please
    help me finding out the problem.

    Regards,
    Saurabh
    , Jul 16, 2008
    #1
    1. Advertising

  2. a écrit :
    > Hello,
    > I am creating an executable using g++. I am gettinng the symbol
    > '_ZNSaIcEC1Ev' undefined in my executable. This symbol is there in a
    > static library being used to build this executable.
    > I am passing libstdc++.a also which has this symbol. Can you please
    > help me finding out the problem.


    Your standard library is included by ld.

    My guess is that you are compiling with gcc and not g++ or that your c++
    files have a .c extension (use .cc, .cpp or .cxx).

    --
    Michael
    Michael DOUBEZ, Jul 17, 2008
    #2
    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. Kenneth Kahl
    Replies:
    2
    Views:
    12,038
    Kenneth Kahl
    Feb 22, 2006
  2. Replies:
    1
    Views:
    1,023
    Nigel Wade
    Mar 24, 2006
  3. baumann@pan
    Replies:
    1
    Views:
    723
    Richard Bos
    Apr 15, 2005
  4. Song Ma
    Replies:
    2
    Views:
    218
    Charles Oliver Nutter
    Jul 20, 2008
  5. Replies:
    6
    Views:
    1,695
Loading...

Share This Page