From mboxrd@z Thu Jan 1 00:00:00 1970 From: us@ooc.de To: gcc-gnats@gcc.gnu.org Subject: c++/2937: Simple C++ programs do not link: undefined reference to `std::strchr(char const*, int)' Date: Fri, 25 May 2001 03:16:00 -0000 Message-id: <20010525101548.19063.qmail@sourceware.cygnus.com> X-SW-Source: 2001-05/msg00798.html List-Id: >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: