I have a C++ project in Anjunta. How do I compile this code:
Code:
#include <iostream>
#include <X11/Xlib.h>
int main()
{
Display* d = XOpenDisplay (0);
std::cout << "Hello world" << std::endl;
return 0;
}
Quote:
undefined reference to 'XOpenDisplay'
|
I know about the "-L/usr/X11R6/lib -lX11" options. What I DON'T understand where I should put them.
It's the same in all IDE's, I've tried KDevelop, Eclipse, and now Anjunta, and I don't understand how to link a library in any of them. No matter what I do it won't work.