Re: linking gcc built libs
- From: MW Ron <mwron@xxxxxxxxxxxxxx>
- Date: Mon, 25 Jul 2005 18:44:26 -0400
In article <1122300382.780370.286490@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"Robert" <justnacl@xxxxxxxxx> wrote:
>I am statically linking some image libraries I built wwith gcc
>(config/make stuff) into a Codewarrior built dynamic library. This
>works on 10.3.x but on 10.4.2 I get some undefined symbols all from the
>C++ and C libraries. I am linking with the BSD libraries using
>MSL_C++_BSD_C_Mach-O_D.lib and BSD_Runtime_Mach-O_D.lib. I can also
>resolve a few of these (restFP, saveFP, __eprintf) by linking with
>libgcc.a (in /usr/lib/gcc/darwin/3.3/, under 10.3 there was a link to
>it in /usr/lib, but no more). Any ideas what I am missing?
What versio of CodeWarrior are you using?
did you rebuild your precompiled headers and libraries after upgrading
to 10.4? You must at least upgrade your precompiled headers.
If this is 8.3 did you point the OS X Volume to the 10.2.8 SDK or is it
at root?
Be sure your access paths are correct and that include is not recursive
search.
Ron
>
>Here are the link errors:
>
>Link Error : undefined: 'std::ostream::seekp(std::fpos<__mbstate_t>)'
>(code)
>Referenced from '_tiffosReadProc(void*, void*, long)' in libtiff.a
>
>Link Error : undefined: 'std::istream::seekg(long long,
>std::_Ios_Seekdir)' (code)
>Referenced from '_tiffosReadProc(void*, void*, long)' in libtiff.a
>
>Link Error : undefined: 'std::ostream::seekp(long long,
>std::_Ios_Seekdir)' (code)
>Referenced from '_tiffosReadProc(void*, void*, long)' in libtiff.a
>
>Link Error : undefined: 'std::ios_base::Init::~Init()' (code)
>Referenced from '_tiffosReadProc(void*, void*, long)' in libtiff.a
>
>Link Error : undefined: 'sscanf$LDBLStub' (code)
>Referenced from 'out_of_memory' in libjpeg.a
>
>Link Error : undefined: 'vfprintf$LDBLStub' (code)
>Referenced from '_tiffReadProc' in libtiff.a
>
>Link Error : undefined: 'restFP' (code)
>Referenced from 'jpeg_idct_float' in libjpeg.a
>Referenced from 'TIFFCIELabToXYZ' in libtiff.a
>Referenced from 'TIFFVGetFieldDefaulted' in libtiff.a
>Referenced from 'LogL16Decode' in libtiff.a
>Referenced from 'PixarLogGuessDataFmt' in libtiff.a
>
>Link Error : undefined: 'saveFP' (code)
>Referenced from 'jpeg_idct_float' in libjpeg.a
>Referenced from 'TIFFCIELabToXYZ' in libtiff.a
>Referenced from 'TIFFVGetFieldDefaulted' in libtiff.a
>Referenced from 'LogL16Decode' in libtiff.a
>Referenced from 'PixarLogGuessDataFmt' in libtiff.a
>
>Link Error : undefined: '__eprintf' (code)
>Referenced from 'TIFFGetTagListCount' in libtiff.a
>Referenced from 'LogL16Decode' in libtiff.a
>Referenced from 'PixarLogGuessDataFmt' in libtiff.a
>Referenced from '_ZIPSetupDecode' in libtiff.a
>Referenced from 'Fax3PreDecode' in libtiff.a
>Referenced from 'LZWSetupDecode' in libtiff.a
>Referenced from 'PredictorSetup' in libtiff.a
>Referenced from 'TIFFSetupStrips' in libtiff.a
>Referenced from 'TIFFStartStrip' in libtiff.a
>Referenced from 'tagCompare' in libtiff.a
>Referenced from 'DumpModeEncode' in libtiff.a
>
>Link Error : undefined: 'sprintf$LDBLStub' (code)
>Referenced from 'error_exit' in libjpeg.a
>Referenced from 'TIFFRGBAImageOK' in libtiff.a
>Referenced from 'tagCompare' in libtiff.a
>Referenced from 'png_write_info_before_PLTE' in libpng12.a
>Referenced from 'png_save_uint_32' in libpng12.a
>Referenced from 'png_set_crc_action' in libpng12.a
>Referenced from 'png_get_uint_32' in libpng12.a
>Referenced from 'png_create_read_struct_2' in libpng12.a
>Referenced from 'png_set_sig_bytes' in libpng12.a
>
>Link Error : undefined: 'fprintf$LDBLStub' (code)
>Referenced from '_TIFFprintAscii' in libtiff.a
>Referenced from 'error_exit' in libjpeg.a
>Referenced from '_tiffReadProc' in libtiff.a
>Referenced from 'Fax3PreDecode' in libtiff.a
>Referenced from 'PredictorSetup' in libtiff.a
>Referenced from 'tagCompare' in libtiff.a
>Referenced from 'png_save_uint_32' in libpng12.a
>Referenced from 'png_get_uint_32' in libpng12.a
>Referenced from 'png_warning' in libpng12.a
>
--
CodeWarrior Community Forum is a free online resource for developers
to discuss CodeWarrior topics with other users and our staff
-- http://www.codewarrior.com/community --
Ron Liechty - MWRon@xxxxxxxxxxxxxx - http://www.codewarrior.com
.
- Follow-Ups:
- Re: linking gcc built libs
- From: Robert
- Re: linking gcc built libs
- References:
- linking gcc built libs
- From: Robert
- linking gcc built libs
- Prev by Date: Re: On the road with no map
- Next by Date: Re: libraries n stuff
- Previous by thread: linking gcc built libs
- Next by thread: Re: linking gcc built libs
- Index(es):
Relevant Pages
|