Xlib.h and Xutil.h not found in Eclipse, how can I fix this?

Posted by eclipseNoob on Stack Overflow See other posts from Stack Overflow or by eclipseNoob
Published on 2010-05-17T03:59:52Z Indexed on 2010/05/17 4:10 UTC
Read the original article Hit count: 259

Filed under:
|
|
|

Hi,

I'm a newbie to Eclipse IDE for C/C++ development. I just installed MingW and set it up as my system's environment variable. I am trying to make an application that uses the X library but eclipse cant seem to find it. Eclipse works with any other simple standard library functions but it cant find the X library. Please Help!

Here's a sample code snippet that's failing:

#include <stdio.h>
#include <X11/Xlib.h> // Can't find this
#include <X11/Xutil.h> // Or this...

int main()
{
    printf("Hello");
    return 0;
}

Do I have to download the X library from somewhere? If so then from where and where do I paste it to? Please tell me what to do in order for me to start coding using the Xlib in Eclipse. If you find any useful links, please dont hesitate to post. Thanks.

© Stack Overflow or respective owner

Related posts about eclipse

Related posts about eclipse-cdt