This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: -static still required for me
- To: libstdc++ at sourceware dot cygnus dot com
- Subject: Re: -static still required for me
- From: Loren James Rittle <rittle at latour dot rsch dot comm dot mot dot com>
- Date: Fri, 5 May 2000 00:50:20 -0500 (CDT)
- Reply-to: rittle at rsch dot comm dot mot dot com
> Well, I finally tracked it down, and it turns out this problem had
> nothing to do with binutils after all. There were some more explicit
> wchar_t instantiations that weren't protected by _GLIBCPP_USE_WCHAR_T.
Cool, your patch almost does it for me as well. I used to get reams
of hard to read template-laden errors involving wchar in addition to
the undefined reference to `__atan2' unless I used -static. I think
the remaining issue is FreeBSD specific.
; cat >t3.C
#include <iostream>
using namespace std;
int main() {
cout<<"hi"<<endl;
return 0;
}
; /usr/local/beta-gcc/bin/g++ -static t3.C
; /usr/local/beta-gcc/bin/g++ t3.C
/usr/local/beta-gcc/lib/gcc-lib/i686-unknown-freebsdelf3.4/2.96/../../../libstdc++.so: undefined reference to `__atan2'
collect2: ld returned 1 exit status