From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96761483131727.tru64-unix-managers.marc@archive.invalid> From: Nikola Milutinovic Date: Wed, 30 Aug 2000 05:55:28 +0000 To: tru64-unix-managers Subject: SUMMARY: Linking problems on T64 UNIX 4.0F X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96761483131727 Hi all. Andrew Hobson 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.