Xref: news2.mv.net comp.os.msdos.djgpp:7178 From: deanph AT ibm DOT net (Dean) Newsgroups: comp.os.msdos.djgpp Subject: Newbie Needs help, setting up DJGPP Date: 13 Aug 1996 08:47:02 GMT Lines: 99 Message-ID: <4upfe6$3b3a@news-s01.ny.us.ibm.net> NNTP-Posting-Host: slip202-135-13-102.sy.au.ibm.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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: #include "..\include\dos.h" I can't have just: #include because I get the message: Cannot find file or directory (ENOENT) and when I have everything working, (or so I think...) I get the message: D:\ASSEMBLE\GCC\BIN/ld.exe: cannot open -lgcc: No such file or directory (ENOENT) The following is all the info that I could think of that might affect things. If anyone knows how to help me, I'd greatly appreciate it... I have a Pentium 100, 16MB RAM, 850MB HDD, and I can't get DJGPP to work. The OS I use to compile my programs is Windows 95 (in a DOS box) I installed the following files into a directroy called d:\assemble\gcc : bnu252b.zip, gcc272b.zip, djdev200.zip, djlsr200.zip, djtst200.zip, djcrx200.zip, faq200.zip. I know some of them aren't needed, but I got them anyway. I left the file DJGPP.ENV exactle as it was when it was installed. The following is what was reterned when I typed the following: gcc -v -o test.exe test.c in the d:\assemble\gcc\programs directory: (\programs is where I plan to keep all my program source files.) gcc version 2.7.2 cpp -lang-c -v -undef -D__GNUC__=2 -D__GNUC_MINOR__=7 -DUNIX -Di386 -DGO32 -DMS DOS -D__unix__ -D__i386__ -D__GO32__ -D_MSDOS__ -D__UNIX -D__i386 -D__GO32 -D__ MSDOS -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) test.c C:\WINDO ZE\TEMP\ccbaaaaa GNU CPP version 2.7.2 (80386), BSD syntax) #include "..." search starts here: #include <...> search starts here: /usr/local/include /usr/local/go32/include /usr/local/lib/gcc-lib/go32/2.7.2/include /usr/include End of search list. cc1 C:\WINDOZE\TEMP\ccbaaaaa -quiet -dumpbase test.c -version -o C:\WINDOZE\TEM P\cccaaaaaa GNU C version 2.7.2 (80386, BSD syntax) compiled by GNU C version 2.7.2 as -o C:\WINDOZE\TEMP\ccdaaaaa C:\WINDOZE\TEMP\cccaaaaa ld -o test.exe crt0.o C:\WINDOZE\TEMP\ccdaaaaa -lgcc -lc -lgcc D:\ASSEMBLE\GCC\BIN/ld.exe: cannot open -lgcc: No such file or directory (ENOENT ) the file test.c contains: #include "..\include\stdio.h" //printf() void main() { printf ("I hope this worked!\n"); } 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 SET LMOUSE=D:\DRIVERS\MOUSE2 SET TEMP=C:\DOS LH C:\WINDOZE\COMMAND\DOSKEY This is my config.sys: DEVICE=C:\WINDOZE\HIMEM.SYS DOS=UMB DOS=HIGH DEVICE=C:\WINDOZE\EMM386.EXE RAM DEVICEHIGH=C:\WINDOZE\SETVER.EXE rem DEVICEHIGH=D:\DRIVERS\SB16\CD-ROM\DRV\SBIDE.SYS /V /D:MSCD001 /P:1f0,14 DEVICEHIGH=D:\DRIVERS\SB16\DRV\VIBRA16.SYS /UNIT=0 /BLASTER=A:220 I:5 D:1 H:5 DEVICEHIGH=D:\DRIVERS\SB16\DRV\CTMMSYS.SYS FILES=40 ------------------------------------------------------- Dean Harding deanph AT ibm DOT net -------------------------------------------------------