Xref: news2.mv.net comp.os.msdos.djgpp:7218 From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Newbie Needs help, setting up DJGPP Date: Tue, 13 Aug 1996 19:20:46 -0700 Organization: Three pounds of chaos and a pinch of salt Lines: 54 Message-ID: <321137FE.4970@cs.com> References: <4upfe6$3b3a AT news-s01 DOT ny DOT us DOT ibm DOT net> NNTP-Posting-Host: ppp220.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Dean DJ-Gateway: from newsgroup comp.os.msdos.djgpp Dean wrote: > > I am having a lot of trouble getting DJGPP to compile things on > my system. To get it to include *.h files I need to use the following > line: > D:\ASSEMBLE\GCC\BIN/ld.exe: cannot open -lgcc: No such file or > directory (ENOENT) This is because you haven't set up your environment the way it tells you to in the 'readme.1st' file. You have to set the DJGPP environment variable in your autoexec.bat to point to the current location of 'DJGPP.ENV', which defines the paths to all the DJGPP files. Note that unless you've moved djgpp.env from its default location, you do NOT need to modify it too! > This is my Autoexec.bat: > > @LH C:\WINDOZE\COMMAND\SHARE.EXE /L:500 > @ECHO OFF > DJGPP=d:/assemble/gcc/djgpp.env > SET DIRCMD=/o > SET BLASTER=A220 I5 D1 H5 P330 T6 > SET SOUND=D:\DRIVERS\SB16 > SET MIDI=SYNTH:1 MAP:E > LH D:\DRIVERS\SB16\DIAGNOSE /S > LH D:\DRIVERS\SB16\MIXERSET /P /Q > PROMPT $P$G > PATH c:\qawrite;C:\EXCEL;C:\WINDOZE;C:\WINDOZE\COMMAND;C:\DOS;D:\OS2\DOSPROGS;d:\assemble\gcc\bin;d:\sea;d:\a86;d:\assemble\gcc\include Delete that d:\assemble\gcc\include line - it's useless. > SET LMOUSE=D:\DRIVERS\MOUSE2 > SET TEMP=C:\DOS > LH C:\WINDOZE\COMMAND\DOSKEY Add this line: SET DJGPP=d:\assemble\gcc\djgpp.env And you should be set to go. P.S.: Why 'assemble'? This is C here, not ASM. :) -- John M. Aldrich, aka Fighteer I -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GCS d- s+:- a-->? c++>$ U@>++$ p>+ L>++ E>+ W+>++ N++ o+ K? w(---) O- M-- V? PS+ PE Y+ PGP- t+(-) 5- X- R+ tv+() b+++ DI++ D++ G e(*)>++++ h!() !r !y+() ------END GEEK CODE BLOCK------