View Full Version : Link error on XOpenDisplay

4th August 2004, 10:59 AM

I've got a very basic C++ harness up and running in KDevelop3.0

However I'm getting a link error "Undefined reference to XOpenDisplay"

I'm linking in libX11.so & libXext.so

Should these libraries contain this function ? When I look at libX11.so it contains a label "XOpenDisplay" but I'm not sure if that's an external label or not. Has anybody got this to link before ?

6th August 2004, 11:45 AM
Just in case anybody else needs to do this, simply go to the "automake manager"

There click on the project name (in my case it's cgs) and from there click the spanner and wratchet. That will bring up a dialogue with "libraries" which you can add libraries with.

Then everythign will build fine.

Now to find out how to get KDevelop to debug my app!