[ale] gcc ques
John J. Cruz
casacruz at bellatlantic.net
Tue Apr 23 20:59:01 EDT 2002
I use the following gcc command:
gcc -o NUcompass -lm -lX11 NUcompass.o
response displayed
/usr/bin/ld: cannot find -lX11
X11 >> /usr/X11R6/lib/libX11.so.6
echo $PATH includes /usr/X11R6/lib
I don't understand why gcc insist on looking in directory /usr/bin when
the library in question is in /usr/X11R6/lib? For that matter how do I
change gcc to look somewhere else?
The header file "includes <math.h> why should I have to add -lm to link
with the math library?
---
This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be
sent to listmaster at ale dot org.
More information about the Ale
mailing list