LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-22-2011, 12:44 PM   #1
tootz
Member
 
Registered: Feb 2011
Posts: 47

Rep: Reputation: 1
compling error


hi

i try to compile my SD_APP.cc but i encountered a error, how do i resolve this?

In file included from SD_APP.cc:1:
SD_APP_HDR.h:6: fatal error: agent.h: No such file or directory
compilation terminated.
 
Old 02-22-2011, 12:48 PM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Is this a program you've written yourself? You probably need to tell the compiler the location of the header agent.h. With gcc, you can specify the directory in which to look for headers by using the -I option. Obviously, you'll probably need to edit your makefile to add the relevant directory..
 
Old 02-22-2011, 12:55 PM   #3
tootz
Member
 
Registered: Feb 2011
Posts: 47

Original Poster
Rep: Reputation: 1
yup this is the program that i have written,

do you mean i have to add agent.h in Makefile?
i dont get you, can u eleborate?
thanks
 
Old 02-22-2011, 01:53 PM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,691

Rep: Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972Reputation: 7972
Quote:
Originally Posted by tootz View Post
yup this is the program that i have written,

do you mean i have to add agent.h in Makefile?
i dont get you, can u eleborate?
thanks
Spell out your words. And you either need to have the agent.h file in the location where your system has the rest of the include files, or you have to specify a fully-qualified path in your C source.
 
  


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
getting error: invalid conversion from ‘const char*’ to ‘int’ while compling paulie1 Programming 14 02-25-2009 02:50 PM
problem compling 2.6 tanalam Red Hat 16 07-10-2006 08:06 AM
kde3.4 kdegraphic compling error! ngan_yine Slackware 6 03-17-2005 01:48 PM
gcc-3.3.3 compling(configure-target-libiberty error 1) windus Linux - Software 0 04-18-2004 12:38 PM
compling c++ LinuxTiro Programming 16 08-30-2003 06:04 AM

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

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