This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

c++/2937: Simple C++ programs do not link: undefined reference to `std::strchr(char const*, int)'



>Number:         2937
>Category:       c++
>Synopsis:       Simple C++ programs do not link: undefined reference to `std::strchr(char const*, int)'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 25 03:16:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Uwe Seimet
>Release:        3.0 20010521 (prerelease)
>Organization:
>Environment:
Linux i686, kernel 2.4.4, configured with/home/us/gcc-20010521/configure --prefix=/opt/egcs --enable-shared --enable-languages=c++ --enable-threads
>Description:
GNU configure scripts fail when compiling this C++ program:

int main(){return(0);}

This results in the following error message:

/opt/egcs/lib/gcc-lib/i686-pc-linux-gnu/3.0/../../../libstdc++.so: undefined reference to `std::strchr(char const*, int)

The compiler was called with:

c++ tests.cc

With gcc 2.95.x everything is fine.
>How-To-Repeat:

>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]