Submitted by Mike_S on Wed, 11/14/2001 - 12:42. Developers
Hey!
I wrote some motif code...currently reading mark kirkegaard`s "opengl for the X window system" ... and when I try to compile my code my system cant find any of the `Xm` include files...where do I find them and what is it???
DO I need anything extra to develope motif applications?
/Mike
I am presuming you have installed the Open Motif Development
files (IE, the includes).
the typical place for them in linux is /usr/X11R6/include/Xm
look for them there, if they are there, you need to make sure that your compile line looks like
gcc -I/usr/X11R6/include foo.c
the key is the -I which tells your compiler to look for the includes there. if the includes arnt there, and you are sure you installed them, try doing a find or a locate for one of them and then changing your link line.
jim
A complete compile including link flags might look like
gcc -I/usr/X11R6/include -L/usr/X11R6/lib -lXm -lXt -lXp -lXext -lX11 somefile.c -o somefile
-scorch