libstdc++ and 10.3.9
libstdc++ and 10.3.9
- Subject: libstdc++ and 10.3.9
- From: "Edwin Vane" <email@hidden>
- Date: Sat, 23 Jun 2007 13:26:44 -0400
Hi all, I have a predicament I'm hoping some of you have been through
yourselves and can thus help me.
I have some old code written pre 10.3.9 and today (now that my OS is
updated to 10.3.9) I tried to compile it. I now get linker errors like
the following:
ld: /usr/lib/gcc/darwin/3.3/libstdc++.a(locale.o) illegal reference to
symbol: std::codecvt<wchar_t, char, __mbstate_t>::id defined in
indirectly referenced dynamic library /usr/lib/libstdc++.6.dylib
ld: /usr/lib/gcc/darwin/3.3/libstdc++.a(locale-inst.o) illegal
reference to symbol: ___udivdi3 defined in indirectly referenced
dynamic library /usr/lib/libgcc_s.1.dylib
ld: multiple definitions of symbol std::__basic_file<char>::is_open() const
ld: multiple definitions of symbol std:: ...
Research indicates this is due to 10.3.9 frameworks using a dynamic
runtime libraries which gcc3.3 doesn't seem to handle (which,
incidentally, seems weird to me. I'm pretty sure under *nix systems
gcc has been able to handle .so libraries for a long time. Perhaps
*.dylib is different in someway I'm not aware of).
There are a few options I've found:
1) Upgrade to OSX 10.4.x. Then I can install xcode 2.x which includes
gcc4 and thus can use dylibs properly. However, leopard-day is near I
didn't think upgrading to tiger just so I can build this one program
was a very good idea.
2) Downgrade to OSX 10.3.8. All frameworks would then use static
runtime. Downgrading seems incredibly risky to me, even if it is
possible.
3) Upgrade just gcc to gcc4. Resources I've found online says this can
get you into trouble. Has anybody here done this successfully? If it
can be done I wouldn't mind this option.
4) Cross compile to 10.3.8 SDK. How can I install the 10.3.8 SDK
*after* having xcode 1.5 already installed? Apple resources say you
need to install these SDK's while installing xcode...
If any of you can answer these questions or provide me any advice, I'd
be eternally grateful.
P.S: If gcc3.3 can't use dylibs and you can't use gcc4 until 10.4.x,
doesn't that make development on 10.3.9 impossible?
--
Edwin V
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden