Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Problem in including files in makefile
Problem in including files in makefile [message #155969] Sun, 09 October 2005 23:49 Go to next message
Eclipse UserFriend
Originally posted by: rajesh_pandey19.yahoo.com

Hi,
I am able to compile my simple programs but if try to use differnt
header files and try to include them through makefile, it seems it is not
identified and the files which are using those header files give an error
message like:
FirstFile.h:3:23: FirstFileDef.h: No such file or directory.
I have included as below in makefile.
INCLUDE = -I..$(DIRSLASH)FirstFile

Since I am new to this environment, kindly suggest where am I wrong.
Re: Problem in including files in makefile [message #156595 is a reply to message #155969] Fri, 21 October 2005 13:46 Go to previous message
Eclipse UserFriend
What have you defined $(DIRSLASH) to be? Which make utility are you
using? If you are trying to use a backslash, you may need to escape it
with another backslash, i.e. DIRSLASH = '\\'. Or, make sure your make
utility accepts backslashes.

From the error you list, FirstFile.h is found in the include path, but
FirstFileDef.h is not - are they both in the ..\FirstFile path?

--John


Rajesh wrote:

> Hi,
> I am able to compile my simple programs but if try to use differnt
> header files and try to include them through makefile, it seems it is
> not identified and the files which are using those header files give an
> error message like:
> FirstFile.h:3:23: FirstFileDef.h: No such file or directory.
> I have included as below in makefile.
> INCLUDE = -I..$(DIRSLASH)FirstFile
> Since I am new to this environment, kindly suggest where am I wrong.
>
Previous Topic:Class browser?
Next Topic:Console bug when used for input with C
Goto Forum:
  


Current Time: Fri Nov 07 04:42:13 EST 2025

Powered by FUDForum. Page generated in 0.02877 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top