LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 10-15-2018, 03:33 PM   #1
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
devel header for x


I do not want to start installing xorg header devel pac until I get a hit so,
Code:
main.cpp:(.text+0x25): undefined reference to `XOpenDisplay'
main.cpp:(.text+0x35b): undefined reference to `XCloseDisplay'
collect2: error: ld returned 1 exit status
I am running Linux MINT, I've already installed, libx11-dev and xorg-dev, and that didn't work.

Last edited by BW-userx; 10-15-2018 at 03:39 PM.
 
Old 10-15-2018, 04:07 PM   #2
BW-userx
LQ Guru
 
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342

Original Poster
Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
I just hand compiled it
Code:
g++ files.cpp  img.cpp  imgfunctions.cpp  main.cpp  options.cpp  timers.cpp    -Wno-switch-enum -Wno-switch -lboost_system -lboost_filesystem -lm -lX11 -lImlib2 -o mh5000
it worked, so I donno, this is the only distro that gave me grief installing this via makefile.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
what are the differences between kernel-header & kernel-devel. dezavu Linux - Software 2 02-16-2012 01:04 AM
What is the use of kernel-devel & kernel-header? Pradeep Dhir Linux - Newbie 1 07-04-2011 03:45 PM
Fedora Core 3: Need to Install org-x11-devel ( error:...Header...signature, BAD... ) downplay Fedora 2 03-04-2009 02:40 PM
Looking for KDE header files for slackware (kdebase-devel) Cintax Linux - Software 1 09-19-2007 06:20 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 11:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration