This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
c++/2937: Simple C++ programs do not link: undefined reference to `std::strchr(char const*, int)'
- To: gcc-gnats at gcc dot gnu dot org
- Subject: c++/2937: Simple C++ programs do not link: undefined reference to `std::strchr(char const*, int)'
- From: us at ooc dot de
- Date: 25 May 2001 10:15:48 -0000
- Reply-To: us at ooc dot de
>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: