LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-17-2004, 01:11 PM   #1
williamtbranch
LQ Newbie
 
Registered: Oct 2002
Location: Apache Junction, AZ
Distribution: Suse
Posts: 5

Rep: Reputation: 0
Unhappy g++ can't find libraries that are in /usr/lib


I'm trying to build a very small program that needs to reference some libraries at compile time. It's telling me that the libraries don't exist. They do exist. I've spent 30 hours or so installing all of them. I have the latest stable version of gcc.

I would greatly appreciate any help.
Thank you.

linux:/home/bill/supermemox-0.0.1/src # make
gcc -Wall -I. -o supermemox KnowledgeOrganizer.o KnowledgeCollection.o KnowledgeNugget.o LearningAlgorithm.o TestResult.o XmlSerializable.o XmlParser.o TextUI.o main.o -l expat -l boost_date_time -l nana -l stdc++
gcc: expat: No such file or directory
gcc: boost_date_time: No such file or directory
gcc: nana: No such file or directory
gcc: stdc++: No such file or directory
make: *** [supermemox] Error 1

Bill Branch williamtbranch@msn.com
 
Old 01-17-2004, 01:17 PM   #2
jtshaw
Senior Member
 
Registered: Nov 2000
Location: Seattle, WA USA
Distribution: Ubuntu @ Home, RHEL @ Work
Posts: 3,892
Blog Entries: 1

Rep: Reputation: 67
Read the gcc/g++ manpage. You are not using the command correctly.

-I. is not neccesary.

Here is an example of me compiling a program with two cpp files in it and the expat library linked in:
g++ -Wall -lexpat -o foo foo.cpp bar.cpp

Last edited by jtshaw; 01-17-2004 at 01:19 PM.
 
Old 01-17-2004, 01:28 PM   #3
williamtbranch
LQ Newbie
 
Registered: Oct 2002
Location: Apache Junction, AZ
Distribution: Suse
Posts: 5

Original Poster
Rep: Reputation: 0
Thank you jtshaw,
That did the job

Regards,
Bill
 
  


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
Removing .a libraries in /usr/lib/ kunkie Linux - General 1 08-27-2005 11:44 PM
I keep getting the error message, cannot find /usr/lib/firefox-1.0.4/icons/default.x ddonnelly Linux - Newbie 2 08-19-2005 10:41 AM
libraries compiling into /usr/lib acidjuice Slackware 4 05-14-2005 05:53 AM
aim: error while loading shared libraries: /usr/lib/libgdk-1.2.so.0: undefined symbol dr_zayus69 Linux - Software 1 12-11-2004 09:10 PM
Compromised? Files "/usr/lib.hwm", "/usr/lib.pwd", "/usr/lib.pwi" Klaus Pforte Linux - Security 4 09-28-2004 11:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:01 AM.

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