Message-ID: <01BC5AD7.F54C5460@TAURUS> From: Steve Higgins To: "'DJGPP Mail List'" Subject: Problem getting ar.exe to work. Date: Wed, 7 May 1997 11:15:22 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Precedence: bulk Hi guys, I've been using DJGPP successfully now for months creating different applications, but I am having real problems getting ar.exe to behave properly. I discovered it when trying to get the python source code djgpp distribution to compile. I then started to play with it and here is what I've found so far. (I'm running in a windows 95 DOS Shell). If I create a file frozen.o using the command. gcc -O2 -I../include -c frozen.c -o frozen.o Then try to create the lib with, ar cr libtmp.a frozen.o I get the following error message. D:/djgpp/bin/ar.exe libtmp.a: Invalid operation and a temporary file named STAAAAAA is left in my current directory. This happens irrespective of whether is set LFN or not. If I go into interactive mode. ar -M AR >CREATE libtmp.a AR >REPLACE frozen.o d:/djgpp/bin/ar.exe: can't find module file frozen.o AR >SAVE AR >^Z I get a file called libtmp.a-tmp slightly larger than frozen.o created. If I copy this file to libtmp.a then inspect it with ar again. ar -M AR >OPEN libtmp.a AR >LIST Current open archive is libtmp.a-tmp rw-r-r-42/42 645 May 7 10:05 1997 frozen.o AR >^Z When I use the library created in this way the code links and the final executable works fine. Does anyone have any idea what is going on? Thanks Steve.