From: Nikola Milutinovic <Nikola.Milutinovic () ev ! co ! yu>
To: tru64-unix-managers
Subject: SUMMARY: Linking problems on T64 UNIX 4.0F
Date: Wed, 30 Aug 2000 05:55:28 +0000 [thread overview]
Message-ID: <96761483131727.tru64-unix-managers.marc@archive.invalid> (raw)
Hi all.
Andrew Hobson <ahobson@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.
reply other threads:[~2000-08-30 5:55 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox