Re: Compiling simple Motif/Lesstif programs.
"Christopher R. Barry" <firstname.lastname@example.org> 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
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 <email@example.com> PGP=E80E0D04F521A094 532B97F5D64E3930