Fedora Linux Support Community & Resources Center
  #1  
Old 10th September 2012, 09:46 PM
cmanL Offline
Registered User
 
Join Date: Jul 2012
Location: America
Posts: 76
macossafari
X-Windows Programming

What packages to I need to install to compile X-Windows code with g++/gcc ? I tried to compile a X-Windows "hello world" type of program with g++ and got the error:

Code:
fatal error: X11/Xlib.h: No such file or directory
compilation terminated.
so I assume some sort of package has to be installed to do this. Thanks for any information!

---------- Post added at 03:46 PM ---------- Previous post was at 11:26 AM ----------

Ok , I think I figured this out. After some intensive google research I found I needed to install a package called libX11-devel ( yum install libX11-devel , for those that need to do the same thing ). The program then compiles with the terminal command: g++ hello.cpp -L /usr/lib/X11 -lX11. I'm pretty surprised how easy it is to map a window in Linux ( I remember having a harder time doing this with MS Windows )!
Reply With Quote
  #2  
Old 14th September 2012, 11:26 AM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 1,718
linuxfirefox
Re: X-Windows Programming

if it happens again try something like

Code:
yum provides "*/X11/Xlib.h"
Reply With Quote
  #3  
Old 16th September 2012, 02:12 AM
cmanL Offline
Registered User
 
Join Date: Jul 2012
Location: America
Posts: 76
macossafari
Re: X-Windows Programming

Good tip , thanks !
Reply With Quote
Reply

Tags
programming, xwindows

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
D programming bioinfornatics Programming & Packaging 0 24th August 2010 03:13 AM
linux programming vs. windows programming unlovedwarrior Programming & Packaging 11 22nd October 2006 09:14 PM
c++ gui programming: linux/windows portability sgjanssens[old] Programming & Packaging 6 15th March 2006 08:20 PM
Programming IDE that works with linux AND windows? Shadow Skill Wibble 4 16th September 2004 11:25 AM


Current GMT-time: 22:35 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat