From: "Robert J. Baker" Newsgroups: comp.os.msdos.djgpp Subject: Still can't get DJGPP working... Date: Mon, 27 Jan 1997 21:15:38 +0000 Organization: Chaos Message-ID: <199701272114.VAA16080@easynet.co.uk> Reply-To: rbaker AT bandit DOT legend DOT co DOT uk Comments: Authenticated sender is Lines: 46 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp I got one reply to my earlier post to the g++ newsgroup, telling me the basics of how to get the program running, and I successfully used this to compile (on a Win95 system) the "hello.c" program which is supplied with Turbo C 1.5 -- so far, so good. However, my first attempt to compile a non-trivial program called !bg.c failed, as follows: C:\~rbaker\cgi>gcc -o !bg.exe !bg.c !bg.c: In function `Main': !bg.c:239: warning: assignment discards `const' from pointer target type !bg.c:240: warning: assignment discards `const' from pointer target type !bg.c(.text+0xf8): undefined reference to `va_start' !bg.c(.text+0x123): undefined reference to `va_end' (In case you're wondering, "main()" does basic initialisation, including setting up a debugging-dump file, then calls "Main()" to do the actual work, and on return closes the dumpfile properly.) I'm not sure I understand the warnings, but the errors turned out to be due to my assuming that including "stdio.h" automatically causes "stdarg.h" to be included as well, as is the case with Turbo C 1.5 -- are there any other differences I should beware of? Indeed (and this is the main reason for this post) are there any instructions of any kind with djgpp, where do I look for them, and do I need anything special to view them? Also, is there a good book on this compiler available, either specific or covering how an ANSI-standard Unix-alike compiler (as I presume this one is) should behave, what functions are available, how to write makefiles, etc.? Finally, could someone give (or point me towards) a guide as to what the various components actually are, so that I may delete those I don't need (do I really need the "zoneinfo" directory, for example?), as the full install takes up about 90Mb of disk space? -------------------------------------------------------------------- This posting was from ROBERT.BAK mailto:robert DOT bak AT bigfoot DOT com http://www.legend.org.uk/~rbaker/ http://ds.dial.pipex.com/ecc/club/members/bpb/ N.B. Due to ridiculously short article expiry times on my local news server, plus the fact that I cannot guarantee affording more than one Net session per week (they cost me UK$4 per hour -- a lot of money to me), please e-mail me a copy of any follow-up. Thanks.