 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
C newbie Guest
|
Posted: Thu Apr 29, 2004 6:57 pm Post subject: about make and its errors |
|
|
Hi,
I'm trying to run "make" but it returns errors like "unbale to open include
file xxxx.h"! I have added it to my path in evnironment varaiblves too.
Any suggestions ?
Thanks
This is what I have in make file:
APP = MyApp
EXEFILE = $(APP).exe
OBJFILES = $(APP).obj
RESFILES =
LIBFILES =
DEFFILE =
!include ..tutorial.mak
|
|
| Back to top |
|
 |
Michel Leunen Guest
|
Posted: Thu Apr 29, 2004 8:07 pm Post subject: Re: about make and its errors |
|
|
C newbie wrote:
| Quote: | I'm trying to run "make" but it returns errors like "unbale to open include
file xxxx.h"! I have added it to my path in evnironment varaiblves too.
This is what I have in make file:
APP = MyApp
EXEFILE = $(APP).exe
OBJFILES = $(APP).obj
RESFILES =
LIBFILES =
DEFFILE =
!include ..tutorial.mak
|
The problem is not in /your/ makefile as it doesn't do much except
including another makefile. So the problem is probably in tutorial.mak.
Are you sure the error message isn't 'unable to open include file
tutorial.mak' instead of xxxx.h? If it's the case, make doesn't find the
file tutorial.mak. If it's really a .h file, isn't it a message coming
from the compiler instead of the make utility?
Michel
--
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, C++BuilderX, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------
|
|
| Back to top |
|
 |
C newbie Guest
|
Posted: Thu Apr 29, 2004 9:03 pm Post subject: Re: about make and its errors |
|
|
Michel,
Thanks for your answer. This is what I see inside the tutorial.mak fie:
..AUTODEPEND
BCC32 = bcc32
ILINK32 = ilink32
BRC32 = brc32
CFLAGS = -c -tWM- -w -w-par -w-inl -W -a1 -Od
LFLAGS = -aa -V4.0 -c -x -Gn
RFLAGS = -X -R
STDOBJS = c0w32.obj
STDLIBS = import32.lib cw32.lib
$(EXEFILE) : $(OBJFILES) $(RESFILES)
$(ILINK32), $(LFLAGS),
$(OBJFILES),$(STDOBJS),$(EXEFILE),$(LIBFILES),
$(STDLIBS),$(DEFFILE),$(RESFILES)
clean:
del *.obj *.res *.tds *.map
And inside the Makefile I see:
APP = test
EXEFILE = $(test).exe
OBJFILES = $(test).obj
RESFILES =
LIBFILES =
DEFFILE =
!include tutorial.mak
**************
I run it as make -f makefile or make makefile
Any sugesstions ?
Thanks
"Michel Leunen" <mleu (AT) NOSPAMskynet (DOT) be> wrote
| Quote: | C newbie wrote:
I'm trying to run "make" but it returns errors like "unbale to open
include file xxxx.h"! I have added it to my path in evnironment
varaiblves too.
This is what I have in make file:
APP = MyApp
EXEFILE = $(APP).exe
OBJFILES = $(APP).obj
RESFILES =
LIBFILES =
DEFFILE =
!include ..tutorial.mak
The problem is not in /your/ makefile as it doesn't do much except
including another makefile. So the problem is probably in tutorial.mak.
Are you sure the error message isn't 'unable to open include file
tutorial.mak' instead of xxxx.h? If it's the case, make doesn't find the
file tutorial.mak. If it's really a .h file, isn't it a message coming
from the compiler instead of the make utility?
Michel
--
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, C++BuilderX, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------
|
|
|
| Back to top |
|
 |
Darko Miletic Guest
|
Posted: Fri Apr 30, 2004 1:24 am Post subject: Re: about make and its errors |
|
|
On Thu, 29 Apr 2004 14:03:31 -0700, "C newbie"
<ittraineeforever (AT) yahoo (DOT) com> wrote:
| Quote: | Michel,
Thanks for your answer. This is what I see inside the tutorial.mak fie:
[snip]
!include tutorial.mak
**************
I run it as make -f makefile or make makefile
Any sugesstions ?
Thanks
|
If tutorial.mak is not in the same folder as your makefile make will
never find it. One thing with borland make is that it ignores PATH
variable. To make it work use this:
make -I"<folder where is tutorial.mak>" -fyourmakefile.mak
or
put full or relative path in include directive in your makefile.
Darko
|
|
| Back to top |
|
 |
Michel Leunen Guest
|
Posted: Fri Apr 30, 2004 7:23 am Post subject: Re: about make and its errors |
|
|
C newbie wrote:
| Quote: | Thanks for your answer. This is what I see inside the tutorial.mak fie:
|
I don't see anything obviously wrong in your makefile but you don't
answer my question. Is it a make error or a compiler error? Please,
copy/paste the error message exactly. If make doesn't find your file
tutorial.mak follow Darko's advise. If it's a compiler error, look in
your source file. You don't give an extension to your source file. Don't
forget bcc32 uses the extension (.c or .cpp) to know if it has to
compile your code as C or C++.
Michel
| Quote: |
.AUTODEPEND
BCC32 = bcc32
ILINK32 = ilink32
BRC32 = brc32
CFLAGS = -c -tWM- -w -w-par -w-inl -W -a1 -Od
LFLAGS = -aa -V4.0 -c -x -Gn
RFLAGS = -X -R
STDOBJS = c0w32.obj
STDLIBS = import32.lib cw32.lib
$(EXEFILE) : $(OBJFILES) $(RESFILES)
$(ILINK32), $(LFLAGS),
$(OBJFILES),$(STDOBJS),$(EXEFILE),$(LIBFILES),
$(STDLIBS),$(DEFFILE),$(RESFILES)
clean:
del *.obj *.res *.tds *.map
And inside the Makefile I see:
APP = test
EXEFILE = $(test).exe
OBJFILES = $(test).obj
RESFILES =
LIBFILES =
DEFFILE =
!include tutorial.mak
|
--
----------------------------------------
Michel Leunen
mailto: see my homepage.
C++Builder, C++BuilderX, BCC5.5.1 Web site:
http://www.leunen.com/
----------------------------------------
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|