[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Compiling simple Motif/Lesstif programs.

"Christopher R. Barry" <cbarry@2xtreme.net> writes:

> I tried this last night, and got the exact same errors. I have 70-80
> files in /usr/X11R6/lib or so. Whenever I need a new component, I always
> grab it from unstable. Maybe something's broken? To compile the X
> program in my first email, I shouldn't need more than the lesstif
> development and runtime and the xlib6g development and runtime, should
> I?

The order of the libraries can be critical.  This compiles your
program on my system (Debian unstable).

  gcc foo.c -o foo -I/usr/X11R6/include -L/usr/X11R6/lib -lXm -lXt -lX11

Rob Browning <rlb@cs.utexas.edu> PGP=E80E0D04F521A094 532B97F5D64E3930

Reply to: