Hi all.
Andrew Hobson <ahobson_at_eng.mindspring.net> hit the nail on the head.
|> # cc -c -shared test.c
|
|> # ld -oldstyle_liblookup -L/usr/local/lib -ldb -o test.exe test.o
|> ld:
|> Error: Undefined:
|> db_create
|
|You didn't tell the linker that you wanted to use a shared library.
|Try the -call_shared option.
|
|$ ld -call_shared -L/usr/local/lib -o test test.o -ldb -lc
|
|The -v option to cc and ld can shed some light. Try this:
|
|$ cc -v -L/usr/local/lib -ldb test.c -o proba.exe
This worked. Thanks to all others who responded.
Received on Wed Aug 30 2000 - 05:56:01 NZST