[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [XForms] Why does gcc not find the forms library?
From: |
Peter Rowat |
Subject: |
Re: [XForms] Why does gcc not find the forms library? |
Date: |
Mon, 12 Oct 2015 16:15:31 -0700 |
Thank you all for your suggestions. I had already used the -I option to locate
header files, and I used absolute not relative path for -L. I will try them
out tomorrow, as I had minor fall off my bike on way home for lunch! (May have
injured shoulder). The guide states that the Xpm library is named libforms??
Best,
Peter R
> On Oct 12, 2015, at 1:15 PM, Bill Unruh <address@hidden> wrote:
>
>
>
> William G. Unruh | Canadian Institute for| Tel: +1(604)822-3273
> Physics&Astronomy | Advanced Research | Fax: +1(604)822-5324
> UBC, Vancouver,BC | Program in Cosmology | address@hidden
> Canada V6T 1Z1 | and Gravity | www.theory.physics.ubc.ca/
>
>> On Mon, 12 Oct 2015, 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
>
> Where IS your forms library. It is certainly not what -L says above. Try
> putting in the full path name instead of a relative path name.
>
> the library is called libforms.so and that is what the -lforms looks for.
> Where is your libforms.so ?
>
>> ls lib/*forms*
>> lib/forms.c lib/forms.lo lib/forms.o lib/libforms.la lib/xforms.5
>> lib/xforms.man
>
> Nope none of those. Maybe you do not have the libforms library istalled?
>> No doubt it is something very trivial, but I’ve spent a long time trying to
>> fix this.
>> Peter R
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, 2015/10/15