linker probs

gcc gives me errors when i specify the Xm libs. what`s the problem?

P.S. using RH6.2 on x86


Anonymous

Anonymous's picture

linker probs

You gave no indication of what the errors are, but I suspect that you need to make sure you link in the printing libs with -lXp on your link line.


Anonymous

Anonymous's picture

linker probs

it tells me it can`t find the libs at all.


Mark

Mark's picture

linker probs

You need to provide your link line. You should also confirm that where the libs actually exist on your system. With these two pieces of info, the problem should be solvable.

You might also look at a couple other postings. Getting these link lines right for the first "Hello World" program is a common first problem.

Regards,

Mark


Anonymous

Anonymous's picture

linker probs

Do you tell it where the libs are using something like
gcc xyz.c -L/usr/X11R6/lib -lXm , etc...
If not, please send a one liner to indicate how you are trying to compile.
-scorch