Mail Archives: djgpp/1996/09/18/05:56:31
Alexander Lehmann wrote:
>
> Martin Bernreuther <Martin DOT Bernreuther AT po DOT uni-stuttgart DOT de> wrote:
>
> : After installing djgpp V2 on WindowsNT 3.51 I have the following problem:
>
> : While trying to compile a simple C-file with e.g.
> : "gcc test.c", the program go32 cannot be found. After renaming
> : "go32-v2.exe" to "go32.exe" I get the following error message:
>
> : go32/v1: cannot find v1's go32.exe
>
> : What's going wrong? Do I need the V1 go32.exe and why?
You seem to have an old v1.x distribution around somewhere, and you are
calling its 'gcc', not v2's. Check your PATH environment variable, and
delete any references to older DJGPP bin directories. For that matter,
you can probably delete v1.x altogether, unless you really REALLY need
it around for compatibility.
If you made the (common) mistake of unzipping v2 over top of your old
v1.x distribution, then you have to delete everything and start over-
the two are not compatible.
However, v2 CAN run old v1.x programs, if you supply it with a copy of
the 'go32.exe' from v1.x. The FAQ (v2/faq201b.zip from your favorite
SimTel mirror) describes how to do this in section 22.12.
> You shouldn't need go32 (either v1 nor v2), maybe you are calling a
> test program in another directory that is compiled with 1.x. Under
> unix the default name for the compiled executable is a.out, with DOS
> it's probably a.exe, which means that you will not compile a test.exe
> program with that call. Instead you should use gcc -o test test.c.
In fact, the best command line to use for all compiles in general is
gcc -Wall -g -O -o test test.c
Of course, replace test and test.c with the actual names of your
programs.
However, that didn't appear to be his problem.
> PS. on a sidenote, does djgpp include a which-like utility? (to locate
> an certain executable), this would be rather useful for such problems.
It does not, but I wrote a new version of 'whence' using DJGPP v2 a
couple
of months ago. It works almost identically to the Unix version, AFAIK.
If you want the code, I can email it to you - it's quite small. Please
specify binary, source, or both.
--
--------------------------------------------------------------------------
| John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com
|
| Proud owner of what might one day | http://www.cs.com/fighteer
|
| be a spectacular MUD... | Plan: To make Bill Gates suffer
|
--------------------------------------------------------------------------
- Raw text -