Menu

Compile X window client with dev-cpp

2009-02-03
2012-09-26
  • Antikythera Mechanism

    I have already compiled a C++ program that performs input and output with cin and cout using Bloodshed dev-cpp.
    Now I would like to compile an X Window client, something like

    include <X11/Xlib.h>

    include <X11/Xutil.h>

    include <X11/Xos.h>

    int main()
    {
    Display *display = XOpenDisplay(0);
    //etc.
    }

    How can I do this with Blooodshed dev-cpp? Where do I get the header files and libraries and how do I link them in? Thank you in advance.

     
    • cpns

      cpns - 2009-02-03

      Do you have an X library that runs native on Windows?

      If not (and I don't know if such a thing even exists), you may have to use Cygwin (good luck!) which emulates a Linux environment on Windows. It ain't pretty.

      Clifford

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.