Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

kellah

macrumors regular
Original poster
Apr 29, 2007
121
0
East Lansing, MI
Does anyone know how to create a makefile to compile a program with the correct FLTK includes and library files?

I know I've got FLTK installed correctly because I can compile my program by doing this:

fltk-config --compile prog.cpp

When I try to create a makefile to accomplish the same thing I'm screwing up somewhere:

prog: prog.cpp
g++ -I/usr/local/include -I/usr/local/include/FL/images -o prog prog.cpp -L/usr/local/lib /usr/local/lib/libfltk.a -lfltk -lXext -lX11 -lm

When I attempt to make the above makfile it gives me this error:

ld: library not found for -lXext

I'm not quite sure where to go from here. Does anyone have some advice or similar experience?

Thanks!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.