GNAT 3.04 problem under Windows 95

There is a problem with GNAT 3.04 under Windows 95, the Decaf program can not be executed (illegal instruction is the error message). Tom Griest, who is taking care of the Win95 GNAT port hotline, found that it comes from the MS libcmt library. Check and see if your environment variable SDK_DIR has something like "msvc20" in it. If it does, it means you are using the LIBCMT from that VC 2.0, 2.1 or 2.2. You should try linking with MSVC4.0 files (available with Microsoft Visual C++) from the MSDEV\lib directory to make it work.

NOTE : if you are using the gnu linker, it barfs on multiple definitions in the MSVC4.0 library files, You can override this by using :

gnatmake decaf -largs -Xlinker -noinhibit -exec

Also it you are using the gnu ld, it determines the .lib file location from the '.ld' files. Copy gnat304a\libs.ld to the decaf directory, and edit it to change the source of the libs to the MSDEV directory.

If you can not get access to MSVC4.0, you should use gnat3.01 as long as gnat3.05 or a patch is not available (Decaf program works with gnat3.01 under Windows 95).




Gilles Demailly - Last update July 3, 1996