Re: XForms: Compile!!!

Giorgos Petasis (petasis@iit.demokritos.gr)
Tue, 9 Feb 1999 13:48:12 +0200 (EET)

# To subscribers of the xforms list from Giorgos Petasis <petasis@iit.demokritos.gr> :

>
> # To subscribers of the xforms list from cmacedo <cmacedo@infonet.com.br> :
>
> Hi! I really need help !!!
>
> I'm trying to compile a program but i'm not having success!!
>
> I tryed to compile with
> gcc -o meteoro meteoro*.c -lforms -lX11
>
> but it doesn't work and show me this message
> ld: cannot open -lX11: No such file or directory
>
> Help me please! I'm a brasilian undergraduated student and need to
> finish this project in xforms to be graduated!
>
> Thanks a lot,
>
> Hendrik
>
You have to find where in your system are located the X11 libraries and
include files. For example in a solaris box, the X11 libraries are located
in the directory /usr/openwin/lib and the include files in the directory
/usr/openwin/include. In other systems, try to check in the directories
/usr/local/lib /usr/X11/lib etc. for a file named libX11.a .
After locating the directory where the X11 lib is, try the following:
(If XLIB_DIR is the directory...)

gcc -o meteoro meteoro*.c -LXLIB_DIR -lforms -lX11 -lm

Good luck :)
george.

_________________________________________________
To unsubscribe, send the message "unsubscribe" to
xforms-request@bob.usuf2.usuhs.mil or see
http://bob.usuf2.usuhs.mil/mailserv/xforms.html
XForms Home Page: http://bragg.phys.uwm.edu/xforms
List Archive: http://bob.usuf2.usuhs.mil/mailserv/list-archives/