Menu

#1 Bug when compiling on Mac OS X 10.3.4

open
nobody
None
9
2004-05-28
2004-05-28
No

g++ -g -O2 -o icraft icraft-main.o icraft-video.o
icraft-mapa.o icraft-peao.
o icraft-team.o icraft-agenteMovel.o
icraft-agenteImovel.o icraft-footman.o icra
ft-archer.o icraft-jogo.o -L/sw/lib -lSDLmain -lSDL
-framework Cocoa -framework
OpenGL -lpng -lz
ld: warning multiple definitions of symbol _crc32
/usr/lib/libz.1.1.3.dylib(crc32.o) definition of _crc32
/usr/lib/libz.dylib(crc32.o) definition of _crc32
ld: warning multiple definitions of symbol _get_crc_table
/usr/lib/libz.1.1.3.dylib(crc32.o) definition of
_get_crc_table
/usr/lib/libz.dylib(crc32.o) definition of _get_crc_table
ld: warning multiple definitions of symbol _inflateEnd
/usr/lib/libz.1.1.3.dylib(inflate.o) definition of
_inflateEnd
/usr/lib/libz.dylib(inflate.o) definition of _inflateEnd
ld: warning multiple definitions of symbol _inflateSync
/usr/lib/libz.1.1.3.dylib(inflate.o) definition of
_inflateSync
/usr/lib/libz.dylib(inflate.o) definition of _inflateSync
ld: warning multiple definitions of symbol
_inflateSyncPoint
/usr/lib/libz.1.1.3.dylib(inflate.o) definition of
_inflateSyncPoint
/usr/lib/libz.dylib(inflate.o) definition of
_inflateSyncPoint
ld: warning multiple definitions of symbol _inflate
/usr/lib/libz.1.1.3.dylib(inflate.o) definition of _inflate
/usr/lib/libz.dylib(inflate.o) definition of _inflate
ld: warning multiple definitions of symbol
_inflateSetDictionary
/usr/lib/libz.1.1.3.dylib(inflate.o) definition of
_inflateSetDictionary
/usr/lib/libz.dylib(inflate.o) definition of
_inflateSetDictionary
ld: warning multiple definitions of symbol _inflateInit2_
/usr/lib/libz.1.1.3.dylib(inflate.o) definition of
_inflateInit2_
/usr/lib/libz.dylib(inflate.o) definition of _inflateInit2_
ld: warning multiple definitions of symbol _inflateReset
/usr/lib/libz.1.1.3.dylib(inflate.o) definition of
_inflateReset
/usr/lib/libz.dylib(inflate.o) definition of _inflateReset
ld: warning multiple definitions of symbol _inflateInit_
/usr/lib/libz.1.1.3.dylib(inflate.o) definition of
_inflateInit_
/usr/lib/libz.dylib(inflate.o) definition of _inflateInit_
ld: warning multiple definitions of symbol _adler32
/usr/lib/libz.1.1.3.dylib(adler32.o) definition of _adler32
/usr/lib/libz.dylib(adler32.o) definition of _adler32
ld: warning suggest use of -bind_at_load, as lazy
binding may result in errors o
r different symbols being used
symbol _crc32 used from dynamic library
/usr/lib/libz.1.1.3.dylib(crc32.o) not f
rom earlier dynamic library /usr/lib/libz.1.dylib(crc32.o)
symbol _get_crc_table used from dynamic library
/usr/lib/libz.1.1.3.dylib(crc32.
o) not from earlier dynamic library
/usr/lib/libz.1.dylib(crc32.o)
symbol _inflateSync used from dynamic library
/usr/lib/libz.1.1.3.dylib(inflate.
o) not from earlier dynamic library
/usr/lib/libz.1.dylib(inflate.o)
symbol _inflateInit_ used from dynamic library
/usr/lib/libz.1.1.3.dylib(inflate
.o) not from earlier dynamic library
/usr/lib/libz.1.dylib(inflate.o)
symbol _inflateSetDictionary used from dynamic library
/usr/lib/libz.1.1.3.dylib
(inflate.o) not from earlier dynamic library
/usr/lib/libz.1.dylib(inflate.o)
symbol _inflate used from dynamic library
/usr/lib/libz.1.1.3.dylib(inflate.o) n
ot from earlier dynamic library
/usr/lib/libz.1.dylib(inflate.o)
symbol _inflateSyncPoint used from dynamic library
/usr/lib/libz.1.1.3.dylib(inf
late.o) not from earlier dynamic library
/usr/lib/libz.1.dylib(inflate.o)
symbol _inflateEnd used from dynamic library
/usr/lib/libz.1.1.3.dylib(inflate.o
) not from earlier dynamic library
/usr/lib/libz.1.dylib(inflate.o)
symbol _inflateInit2_ used from dynamic library
/usr/lib/libz.1.1.3.dylib(inflat
e.o) not from earlier dynamic library
/usr/lib/libz.1.dylib(inflate.o)
symbol _inflateReset used from dynamic library
/usr/lib/libz.1.1.3.dylib(inflate
.o) not from earlier dynamic library
/usr/lib/libz.1.dylib(inflate.o)
symbol _adler32 used from dynamic library
/usr/lib/libz.1.1.3.dylib(adler32.o) n
ot from earlier dynamic library
/usr/lib/libz.1.dylib(adler32.o)
ld: Undefined symbols:
_SDL_main
make[1]: *** [icraft] Error 1
make: *** [all-recursive] Error 1

Discussion

  • Joăo Paulo F Farias

    Logged In: YES
    user_id=473586

    Hi!

    It appears that it is including zlib more then once on the
    link, and it's not finding SDL.

    I don't know nothing about MacOS, so I can't help you with that.

    May be if someone donate me a brand new Mac...

    JP.

     
  • Mikey Lubker

    Mikey Lubker - 2004-06-07

    Logged In: YES
    user_id=228866

    Hm, I know I have SDL installed, maybe I need to check and
    make sure it is linking to the right place.

    The zlib problem is strange... I use zlib in other software
    and it works fine.

    Ratchet

     

Log in to post a comment.