Mail Archives: djgpp/2001/02/20/10:11:14
Eddy Ilg <eddyilg AT t-online DOT de> wrote:
> Yes,
>> cd src; gcc -c main.c -o main.obj
>> ** error -1 ** deleting main.obj
> is all that make says and in my other project I don't use gcc and its the
> same problem. Someone told me to try out the bash for DOS and I'm gonna do
> that (Although I think porting Unix/Linux programs to DOS hurts).
No need to hurt yourself: the port already exists, and it's *very*
well-done, IMHO. Get it from the same place you downloaded your
current set of DJGPP .zips from.
> Could it be that make cannot (for some reason) execute cd?
Hardly. I.e.: only if you've set up some environment variables in a
broken way. Watch out for 'SHELL' and 'COMSPEC' in particular. If the
programs they point to don't exist, or aren't executable from a DOS
program like DJGPP make, that could explain an 'error -1' message.
A quick test should be able to verify that: write a little test makefile
with a command that has *only* the 'cd' command, with no semicolon, and/or
one with two 'cd' commands separated by a semicolon.
> Is there any way how I can tell make to put out some more debug messages, so
> that I can see what it tries to do?
Nothing short of running 'make' inside the debugger, I suspect.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -