Via: uk.ac.aston; Tue, 19 Jan 1993 10:53:38 +0000 To: djgpp AT sun DOT soe DOT clarkson DOT edu From: John Fletcher Date: 19 Jan 93 10:52:57 GMT Subject: Re: GCC16 not the same as GCC Reply-To: J DOT P DOT Fletcher AT aston DOT ac DOT uk I am forwarding this, with permission. John ------- Forwarded Message Follows ------- From: Chris Boucher Date: Mon, 18 Jan 93 10:19:45 GMT To: J DOT P DOT Fletcher AT aston DOT ac DOT uk Subject: Re: GCC16 not the same as GCC John Fletcher writes: > I am having problems with the 16bit version of the GCC.EXE not > > [deleted] > > behaving the same as the 32bit version. > When I run it with GCC(16bit) the two entries "-LS:./lib" on the > ld.exe line are missing (I'lld like to show you, but the GO32 2r1 > parameter doesn't work the same, so I can't redirect all the 16bit > version output to a file.) NOTE: The 16bit version DOES find crt0.o. > > [deleted] This problem arises because gcc checks that each of the directories in the LIBRARY_PATH environment variable exist before passing them as command line options to ld. This fails for your network drive because Novell doesn't emulate the stat() call on directories. I wrote a version of stat() which works around this problem and DJ built it into go32, hence GCC(32bit) works fine. If you want to get GCC(16bit) working then all that you have to do is change the calls to stat() with ones to unixlike_stat() and link with ustat.c (in with the GO32 sources). The problem is, of course, that you'll need a copy of Turbo C (I don't). I just stick with GCC(32bit). Chris. -- Dr Chris Boucher Tel: (+44 703) 592300 Signal Processing and Control Group Fax: (+44 703) 593033 Institute of Sound and Vibration Research Email: ccb AT uk DOT ac DOT soton DOT mail (UK) University of Southampton ccb AT mail DOT soton DOT ac DOT uk (World) Southampton S09 5NH --------------------------------------------------------------------- Dr John P. Fletcher Department of Chemical Engineering and Applied Chemistry, Aston University, Tel: (44) 21 359 3611 ext 4625 Aston Triangle, Email(Most systems): J DOT P DOT FLETCHER AT ASTON DOT AC DOT UK BIRMINGHAM B4 7ET U.K. Email(JANET only): J DOT P DOT FLETCHER AT UK DOT ASTON DOT AC ---------------------------------------------------------------------