Re: linking gcc built libs



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
.



Relevant Pages

  • linking gcc built libs
    ... I am statically linking some image libraries I built wwith gcc ... Referenced from '_tiffosReadProc(void*, void*, long)' in libtiff.a ...
    (comp.sys.mac.programmer.codewarrior)
  • Re: How can I use a C-library (libXML) in an MacOS project?
    ... >Windows platform to MacOS InDesign! ... >The plugin uses to external C libraries call libCURL and libXML. ... >real problem trying to use those libraries for the MacOS port. ... With CodeWarrior you have to show the files in the project manager ...
    (codewarrior.mac)
  • Re: Shared Libraries and Stubs
    ... > interfaceLib or other stub libraries) you have to run them in the ... > You can find this in the Other Metrowekrs Tools folder as CodeWarrior ... > You might want to consider creating a Carbon Application which will run ... > CarbonLib which encompasses almost all of the OS 9 extensions. ...
    (codewarrior.mac)
  • Re: linking gcc built libs
    ... >> did you rebuild your precompiled headers and libraries after upgrading ... You must at least upgrade your precompiled headers. ... >libraries. ... CodeWarrior links with libraries made by XCode ...
    (comp.sys.mac.programmer.codewarrior)
  • How can I use a C-library (libXML) in an MacOS project?
    ... I'm currently trying to port an InDesign plugin initially developed on the Windows platform to MacOS InDesign! ... I have a real problem trying to use those libraries for the MacOS port. ... Is there any way to capsule the library using another CodeWarrior project and make it accessible this way to the MacOS project? ...
    (codewarrior.mac)