Which libgcc do I need to use? (link probs in CW project)
Which libgcc do I need to use? (link probs in CW project)
- Subject: Which libgcc do I need to use? (link probs in CW project)
- From: "Sean McBride" <email@hidden>
- Date: Fri, 6 May 2005 13:21:46 -0400
- Organization: Rogue Research
Hello,
I maintain both CW 9.5 and XCode 1.5 builds of my application in 10.3.9.
My app now uses several 3rd party C static libraries built by gcc 3.3,
because of this my CW version no longer links:
Link Error : undefined: '__moddi3' (code)
Referenced from 'pagesize' in libnetcdf.a
Link Error : undefined: '__divdi3' (code)
Referenced from 'add_to_NCList' in libnetcdf.a
I have found that the solution is to add libgcc.a to the CW project,
which XCode no doubt does implicitly.
However, I'm not sure about all this... which libgcc to use? there is a
libgcc.a, libgcc_s.1.dylib, and libgcc_s.1.0.dylib, the .a versions also
seem to have gcc-version-dependant variants. Also, some SDKs have some
and not others. Ack. What is libgcc anyway? :)
My app needs to run in 10.3.9 and later, and I would like to build from
both 10.3 and 10.4, using the SDKs.
Thanks!
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
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