This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


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

Re: -static still required for me


> 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

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