-static still required for me
Loren James Rittle
rittle@latour.rsch.comm.mot.com
Thu May 4 22:50:00 GMT 2000
> 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
More information about the Libstdc++
mailing list