Message-Id: <199606022117.XAA09345@login.eunet.no> Comments: Authenticated sender is From: "Hans-Christian Prytz" To: djgpp AT delorie DOT com Date: Sun, 2 Jun 1996 23:19:04 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Trouble with IO and ar on Windows NT Greetings! I dl'ed DJGPP a couple of days ago, and have spent until now trying to chase this bug i've found. I won't bother you with all the detiled code in case you already have had many of these, but the general problem is as follows: I am trying to compile a program spread over several sourcefiles. Some of them are supposed to be in a .lib file (my other problem, see below). One if the routines in the prog. reads some data from a file. Now the problem is that when I compile it with gcc it reads nothing from the file. All the data comes out as . However when I compile the very same code with bcc (Borland command line compiler) it works perfectly. Have you heard from any other people who have the same kind of problem? The second problem conserns the ar.exe function. If I haven't misunderstood completely, this is used to pack several .o files into a library that can be linked in. When I try to create a archive, it keeps telling me that there is no file with the name specified. (Not so starnge, since I'm trying to create it..) I use the following commandline: ar -rc grunn.lib grunnlag.o which produces teh followin response: f:/utils/djgpp/bin/ar.exe: grunn.lib: No such file or directory (ENOENT) Any help would be appreciated. Hans-Christian Prytz -- ____________________________________________ |Hans-Christian Prytz | |e-mail: hans DOT christian DOT prytz AT login DOT eunet DOT no | |homepage: http://login.eunet.no/~hanscpr/ | |____________________________________________| "If anything can go wrong, it will!" "If anything goes wrong, it will do so at the worst possible time!" -- Murphy's 1st and 2nd law. "Murphy was a damn optimist!!" -- Any friend of Frank Drebin