SUMMARY: Linking problems on T64 UNIX 4.0F

From: Nikola Milutinovic <Nikola.Milutinovic_at_ev.co.yu>
Date: Wed, 30 Aug 2000 07:55:28 +0200

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

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:41 NZDT