Hi All,
I'm using Xterm to try and write a basic program for the X Windows system that creates a window and draws a line. However, I can't compile the program in the following way:
g++ XWinCode.cc
The error I get is:
ld:Undefined Symbols:
_XCreateGC
_XCreateSimpleWindow
....etc
In my code I include <X11/Xlib.h>, <assert.h>, <unistd.h>. Using "locate" I know these files exist. What am I doing wrong? Thanks
Cheers,
ScKaSx
I'm using Xterm to try and write a basic program for the X Windows system that creates a window and draws a line. However, I can't compile the program in the following way:
g++ XWinCode.cc
The error I get is:
ld:Undefined Symbols:
_XCreateGC
_XCreateSimpleWindow
....etc
In my code I include <X11/Xlib.h>, <assert.h>, <unistd.h>. Using "locate" I know these files exist. What am I doing wrong? Thanks
Cheers,
ScKaSx