[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XForms] Why does gcc not find the forms library?
From: |
jon |
Subject: |
Re: [XForms] Why does gcc not find the forms library? |
Date: |
Mon, 12 Oct 2015 21:46:20 +0100 |
On Mon, 2015-10-12 at 12:32 -0700, Peter Rowat wrote:
> On OS X, I’ve installed XForms and compiled the demos and they all
> work.
> But trying to compile the simplest program directly, e.g.
>
>
> gcc -o pshme pshme.c -lforms
>
>
> fails with "ld: library not found for -lforms”
> Same happens if I tell gcc where to look:
>
>
> gcc -o pshme pshme.c -L/….../xforms-1.2.4/lib -lforms
PS I seem to remember a quirk with real GCC where -L must be absolute, I
am not sure if this is still true but it was at one point.
I have some bash scripts with code like this:
P=`pwd'/lib/mylib
gcc blabla -L$P
Re: [XForms] Why does gcc not find the forms library?, jon, 2015/10/12
Re: [XForms] Why does gcc not find the forms library?,
jon <=