Mail Archives: djgpp/1997/04/26/00:31:13
From: | ac6pv AT sfo DOT com (JD)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Still cannot persuade compiler to see *h files.
|
Date: | Sat, 26 Apr 1997 02:34:09 GMT
|
Organization: | San Francisco Online (Televolve, Inc.)
|
Lines: | 54
|
Message-ID: | <5jrpja$fp3@ramona.sfo.com>
|
NNTP-Posting-Host: | joseph.sfo.com
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Under Win95, my gcc compiler consistently cannot see *.h files. I
have tried everything.
I have been working on it a week and still cannot get it to work.
Must I buy Borland C++??
----------------------------
EXPERIMENT 1:
I ran this file:
int main()
{
return 0;
}
----------------------------
With this command line:
C:\djgpp\Source>gcc test.c -o test.exe
----------------------------
And this was returned:
C:\DJGPP\BIN/ld.exe: cannot open crt0.o: No such file or directory
(ENOENT)
----------------------------
----------------------------
EXPERIMENT 2:
#include <stdio.h>
int
main(int argc, char *arg
{
printf("hello\n");
return 0;
}
-----------------------------
Then I ran the above file with this command line:
redir -o go32-v2.txt -eo gcc -v hello.c
----------------------------
With this result:
gcc version 2.7.2.1
cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -Dunix -Di386
-DGO32 -DMSDOS -D__unix__ -D__i386__ -D__GO32__ -D__MSDOS__ -D__unix
-D__i386 -D__GO32 -D__MSDOS -Asystem(unix) -Asystem(msdos)
-Acpu(i386) -Amachine(i386) hello.c C:\WINDOWS\TEMP\ccbaaaaa
GNU CPP version 2.7.2.1 (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/local/go32/include
/usr/local/lib/gcc-lib/go32/2.7.2.1/include
/usr/include
End of search list.
hello.c:1: stdio.h: No such file or directory (ENOENT)
-------------------------------------
What do you make of the above?
JD
Please reply by e-mail to <joseph AT sfo DOT com>
- Raw text -