LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-24-2010, 03:43 PM   #1
partha82
LQ Newbie
 
Registered: Jun 2010
Posts: 4

Rep: Reputation: 0
Issue in compiling cpp file


Hi,

I've been trying to build a cpp file by adding all the required libraries, but its saying that the library is not found.
Please find the command and error below.

g++ -o ../../bin/mkcpl ../../src/mkcpl.cpp -lm -lexpat -lasdcp -lkumu -lcrypto -I ../../dep/asdcplib/ -L ../../dep/expat
/usr/bin/ld: cannot find -lexpat
collect2: ld returned 1 exit status

expat is the library which i've already built and its available under dep.
Not sure why its still saying 'cannot find -lexpat'

Can anyone help?

Last edited by partha82; 06-24-2010 at 03:56 PM.
 
Old 06-24-2010, 05:04 PM   #2
David1357
Senior Member
 
Registered: Aug 2007
Location: South Carolina, U.S.A.
Distribution: Ubuntu, Fedora Core, Red Hat, SUSE, Gentoo, DSL, coLinux, uClinux
Posts: 1,302
Blog Entries: 1

Rep: Reputation: 107Reputation: 107
Quote:
Originally Posted by partha82 View Post
g++ -o ../../bin/mkcpl ../../src/mkcpl.cpp -lm -lexpat -lasdcp -lkumu -lcrypto -I ../../dep/asdcplib/ -L ../../dep/expat
/usr/bin/ld: cannot find -lexpat
collect2: ld returned 1 exit status
Try
Code:
g++ -o ../../bin/mkcpl ../../src/mkcpl.cpp -L ../../dep/expat -lm -lexpat -lasdcp -lkumu -lcrypto -I ../../dep/asdcplib/
 
  


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
rasterbar's libtorrent compiling a simple_client.cpp vikhr Programming 0 05-25-2008 09:16 PM
CPP Fails Sanity Check when compiling grapnell Linux - Software 4 08-16-2006 10:03 AM
error in compiling a simple cpp prog.. nick021 Programming 10 05-25-2006 04:30 PM
compiling .h and .cpp files with g++ arnab_be Linux - Newbie 2 03-03-2004 02:23 PM
/lip/cpp error when compiling mep]-[isto Linux - Newbie 1 12-22-2003 06:44 AM

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

All times are GMT -5. The time now is 10:04 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