X Window X11 RTL Linkage Problem - GCC

Asked by Kim Lyon

I am currently porting my company product onto Linux . For this I need access to the X Windows - X11 - GDI . When compiling the code the RTL include .h file is being picked up :-

#include<X11/Xlib.h>

but the RTL fn.'s are not being compiled in :-

../../Build/FrontEnd/Linux/obj/Debug/FrontEnd_Module_Linux/Main.o In function `main':
/home/kim/Projects/FrontEnd/FrontEnd_Module_Linux/Main.cxx|51|undefined reference to `XOpenDisplay'
/home/kim/Projects/FrontEnd/FrontEnd_Module_Linux/Main.cxx|61|undefined reference to `XCreateSimpleWindow'
/home/kim/Projects/FrontEnd/FrontEnd_Module_Linux/Main.cxx|64|undefined reference to `XSelectInput'
/home/kim/Projects/FrontEnd/FrontEnd_Module_Linux/Main.cxx|67|undefined reference to `XMapWindow'
/home/kim/Projects/FrontEnd/FrontEnd_Module_Linux/Main.cxx|72|undefined reference to `XNextEvent'
/home/kim/Projects/FrontEnd/FrontEnd_Module_Linux/Main.cxx|76|undefined reference to `XFillRectangle'
=== Build finished: 6 errors, 0 warnings ===

The other standard RTL library fn's are , however , being compiled in .

Any ideas ?

Many Thanks

Kim Lyon

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Kim Lyon
Solved:
Last query:
Last reply:
Revision history for this message
Kim Lyon (kim-lyon) said :
#1

PS I do know that the actual X11 library would be located elsewhere but there should be code being included in the build that links to it .

Revision history for this message
Kim Lyon (kim-lyon) said :
#2

Ended up setting up a project with QDevelop and linking in via that .