Hi,
I am using gcc 4.0 with Xcode 2.1.
I am including two static libraries. Both of them in turn use
libjpeg.a.
I get errors like multiple definitions of symbol
/usr/bin/ld: multiple definitions of symbol _deflateSetHeader
/Volumes/Macintosh/C-Studio/ImageTest_FreeImage/../juce_1_19/bin/
UninstalledProducts/libJucedebug.a(deflate.o) definition of
_deflateSetHeader in section (__TEXT,__text)
/Volumes/Macintosh/C-Studio/ImageTest_FreeImage/../FreeImage/
libfreeimage.a(deflate.o) definition of _deflateSetHeader in section
(__TEXT,__text)
/usr/bin/ld: multiple definitions of symbol _deflateTune
/Volumes/Macintosh/C-Studio/ImageTest_FreeImage/../juce_1_19/bin/
UninstalledProducts/libJucedebug.a(deflate.o) definition of
_deflateTune in section (__TEXT,__text)
/Volumes/Macintosh/C-Studio/ImageTest_FreeImage/../FreeImage/
libfreeimage.a(deflate.o) definition of _deflateTune in section
(__TEXT,__text)
/usr/bin/ld: multiple definitions of symbol _deflate_copyright
/Volumes/Macintosh/C-Studio/ImageTest_FreeImage/../juce_1_19/bin/
UninstalledProducts/libJucedebug.a(deflate.o) definition of
_deflate_copyright in section (__TEXT,__cstring)
/Volumes/Macintosh/C-Studio/ImageTest_FreeImage/../FreeImage/
libfreeimage.a(deflate.o) definition of _deflate_copyright in section
(__TEXT,__cstring)
/usr/bin/ld: multiple definitions of symbol _inflateGetHeader
/Volumes/Macintosh/C-Studio/ImageTest_FreeImage/../juce_1_19/bin/
UninstalledProducts/libJucedebug.a(inflate.o) definition of
_inflateGetHeader in section (__TEXT,__text)
/Volumes/Macintosh/C-Studio/ImageTest_FreeImage/../FreeImage/
libfreeimage.a(inflate.o) definition of _inflateGetHeader in section
(__TEXT,__text)
/usr/bin/ld: multiple definitions of symbol _inflatePrime
/Volumes/Macintosh/C-Studio/ImageTest_FreeImage/../juce_1_19/bin/
UninstalledProducts/libJucedebug.a(inflate.o) definition of
_inflatePrime in section (__TEXT,__text)
/Volumes/Macintosh/C-Studio/ImageTest_FreeImage/../FreeImage/
libfreeimage.a(inflate.o) definition of _inflatePrime in section
(__TEXT,__text)
/usr/bin/ld: multiple definitions of symbol _adler32_combine
/Volumes/Macintosh/C-Studio/ImageTest_FreeImage/../juce_1_19/bin/
UninstalledProducts/libJucedebug.a(adler32.o) definition of
_adler32_combine in section (__TEXT,__text)
/Volumes/Macintosh/C-Studio/ImageTest_FreeImage/../FreeImage/
libfreeimage.a(adler32.o) definition of _adler32_combine in section
(__TEXT,__text)
/usr/bin/ld: multiple definitions of symbol _crc32_combine
/Volumes/Macintosh/C-Studio/ImageTest_FreeImage/../juce_1_19/bin/
UninstalledProducts/libJucedebug.a(crc32.o) definition of
_crc32_combine in section (__TEXT,__text)
/Volumes/Macintosh/C-Studio/ImageTest_FreeImage/../FreeImage/
libfreeimage.a(crc32.o) definition of _crc32_combine in section
(__TEXT,__text)
Is there any work around for this issue?
Any linker flag that would help?
Thanks
---
Yogesh Kini