LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author] [stats]
  From: Toby Corkindale <tjcorkin@sa.pracom.com.au>
  To  : David Lloyd <lloy0076@rebel.net.au>
  Date: Mon, 30 Jul 2001 18:38:38 +0930 (CST)

Re: Compiling Berkeley DB Programs

Have a look at some other makefiles, i think you'll see there isn't any
spaces between the -L and -l and their options.
Eg, if you have libdb3.so in /usr/local/db3/lib, then you'd use:

-L/usr/local/db3/lib -ldb3

(note the absence of the prefixed lib)

TjC

On Mon, 30 Jul 2001, David Lloyd wrote:

>
> Hi There!
>
> I'm trying to compile this:
>
<SNIP>
>
> But I get:
>
> [lloy0076@localhost voting]$ make
> gcc -o vote -O2 -march=athlon -L /lib -l lib/libdb-3.1.so vote.o
> gcc: lib/libdb-3.1.so: No such file or directory
> make: *** [vote] Error 1

-- 
LinuxSA WWW: http://www.linuxsa.org.au/  IRC: #linuxsa on irc.linux.org.au
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author] [stats]
Return to the LinuxSA Mailing List Information Page