Mail Archives: djgpp/1999/09/13/11:34:23
On Thu, 9 Sep 1999, Tony Welsh wrote:
> My only thought is the last command line - is the last backslash the problem
> as the rest are UNIX style (on MSDOS?) .
No, DJGPP handles both forward and backslashes alike.
> C:\djgpp\src>gcc -c -v chap01_1.c
> Reading specs from c:/djgpp/lib/specs
> gcc version 2.95 19990728 (release)
> c:/djgpp/lib/gcc-lib/djgpp/2.95/cpp.exe -lang-c -v -isystem
> c:/djgpp/bin/include -D__GNUC__=2 -D__GNUC_MINOR__=95 -Dunix -Di386 -DGO32
> -DMSDOS -DDJGPP=2 -DDJGPP_MINOR=2 -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__
> -D__DJGPP__=2 -D__DJGPP_MINOR__=2 -D__unix -D_i386 -D__GO32 -D__MSDOS
> -D__DJGPP=2 -D__DJGPP_MINOR=2 chap01_1.c c:/djgpp/tmp\ccnTHF0i.i
This indicates that the program which crashes is cpp.exe. Is that
what Windows says in the message that it pops up?
Do you see the temporary file (c:/djgpp/tmp\ccnTHF0i.i in this case)
on disk after the crash?
Please invoke the preprocessor manually, like shown below, and see if
it works:
c:\djgpp\lib\gcc-lib\djgpp\2.95\cpp -lang-c -isystem c:/djgpp/bin/include
chap01_1.c c:/djgpp/tmp\ccnTHF0i.i
Note: this is all one long line!
Please also try this command and tell what it produces:
go32-v2 c:/djgpp/bin/gcc.exe -v
> I wouldn't think that a virus scanner would interfere with a
> compile, I could understand if the program was running and doing
> some low level commands and then it fails, but not a compile.
Antivirus sits on the Windows program invocation chain and checks
every program that is invoked. So it could interfere with program
invocation, especially since DJGPP programs are not real-mode DOS
executables.
- Raw text -