Date: Mon, 17 Nov 1997 21:43:34 -0800 (PST) Message-Id: <199711180543.VAA11152@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: Guy Giesbrecht , "'djgpp AT delorie DOT com'" From: Nate Eldredge Subject: Re: compiler can't find stdio.h Precedence: bulk At 04:18 11/16/1997 -0800, Guy Giesbrecht wrote: >Hello, > I'm just getting started with djgpp under windows95 and everything seems to be installed properly yet when I try to compile even the simplest of programs, the compiler says it can't find stdio.h I've copyed this file to what seems to be every pertinent directory, even the root yet the compiler fails to find it. Anyone have an idea as to what I've done wrong? The paths all seems to be set up right, autoexec and all that... Read README.1ST if you haven't. Make sure your PATH and DJGPP environment variables are set correctly. If you can't find the problem, please post here the following: * AUTOEXEC.BAT * Output of `gcc -v foo.c' (replace foo.c with your file) * Output of `SET' (your environment) Nate Eldredge eldredge AT ap DOT net debugging format. The easy fix: Don't do that. If you get the stabs patch (I think it's on RH's home page: http://www.tu-chemnitz.de/~sho/rho, or I can mail), then you can build GCC with debugging. You probably want to use -O2 instead anyway, to make the compiler faster. > >* if I just "make" and copy the resulting files, when I try to compile a >simple case I get "file not recognized: File format not recognized" I notice your file is a `.cpp' file. There is a known bug involving `.cpp' files, but I'm not sure if this is it; try renaming it to `.cc'. Failing that, compile with the `-v' switch and post the output. You can also compile with `-Wl,--verbose' to see what the linker does, but please don't post all of its output, it will be huge. Try to pare it down before posting. Also, the GCC source distribution is not LFN-clean. This will probably be fixed soon. I *think* you won't have to rename and such if you disable LFN when compiling. >REM Changes to cp/Makefile >REM add closing"'" to `echo $(PARSE_C) line 195 That is an actual mistake in the makefile. Since it's supposed to build with command.com, just remove everything but $(PARSE_C) . Somebody came up with a more elegant solution but this works. >REM I don't know what the following line does -MDD >ln -s /djgpp/bin/cpp.exe /djgpp/bin/cccp.exe It makes a symlink (sort of) from cpp to cccp. That way, you can invoke the preprocessor as either `cpp' or `cccp' but only use the disk space once. Nate Eldredge eldredge AT ap DOT net