tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Linking problems on T64 UNIX 4.0F
@ 2000-08-30  5:55 Nikola Milutinovic
  0 siblings, 0 replies; only message in thread
From: Nikola Milutinovic @ 2000-08-30  5:55 UTC (permalink / raw)
  To: tru64-unix-managers

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.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-08-30  5:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-08-30  5:55 SUMMARY: Linking problems on T64 UNIX 4.0F Nikola Milutinovic

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox