Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'another linker error' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
another linker error
Authored by: sapporo on Aug 07, '02 03:07:12PM

hmm, doesn't work for me either. I worked around the first linker error like this:
cp /sw/lib/libdl.a lib/
ranlib lib/libdl.a

but it still wont link correctly:

<snip>
cc -Llib -o bin/glimpse main.o get_filename.o get_index.o split.o index/region.o index/getword.o index/filetype.o index/simpletest.o index/memlook.o index/lib.o index/io.o -lagrep -lm
/usr/bin/ld: warning multiple definitions of symbol _strdup
index/lib.o definition of _strdup in section (__TEXT,__text)
/usr/lib/libm.dylib(strdup.o) definition of _strdup
/usr/bin/ld: Undefined symbols:
_dlclose
_dlerror
_dlopen
_dlsym
/usr/bin/ld: warning unused multiple definitions of symbol _AM
"link editor" definition of _AM in section (__DATA,__common)
/usr/lib/libm.dylib(curses.o) unused definition of _AM
/usr/bin/ld: warning unused multiple definitions of symbol _table
"link editor" definition of _table in section (__DATA,__common)
/usr/lib/libm.dylib(table.o) unused definition of _table
make: *** [notsglimpse] Error 1

can anyone help?

TIA,
-sapporo.



[ Reply to This | # ]