linker probs

This forum is read only. No new submissions are accepted.

Questions about motif? Contact us

5 posts / 0 new
Last post
linker probs

Submitted by Anonymous on Thu, 06/15/2000 - 00:31. Developers
gcc gives me errors when i specify the Xm libs. what`s the problem?

P.S. using RH6.2 on x86

Anonymous

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

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

Mark

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

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