i use codeblocks in mac compile source code:
#include <x11/xlib.h> display *display; int main() { display = xopendisplay(null); xclosedisplay(display); return 0; } compiling source code successfull, linking x11 not successfull. how solve problem? libx11 in mac?
thanks.
as bavarious noted, you'll looking in /usr/x11/lib (and os x 10.6.8 uses symlink make /usr/x11r6 option well). used codeblocks once, couldn't tell requires pass
-l/usr/x11/lib
to gcc.
Comments
Post a Comment