LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   compling error (https://www.linuxquestions.org/questions/linux-software-2/compling-error-864342/)

tootz 02-22-2011 12:44 PM

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.

Nylex 02-22-2011 12:48 PM

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..

tootz 02-22-2011 12:55 PM

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

TB0ne 02-22-2011 01:53 PM

Quote:

Originally Posted by tootz (Post 4267599)
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.


All times are GMT -5. The time now is 07:20 AM.