From: Adam Majer Newsgroups: comp.os.msdos.djgpp Subject: Re: Help compiling files. Date: Mon, 18 Jun 2001 23:10:49 -0500 Organization: The University of Manitoba Lines: 27 Message-ID: <3B2ED0C9.A9BDCBE6@galacticasoftware.com> References: NNTP-Posting-Host: annex1-15.cc.umanitoba.ca Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: canopus.cc.umanitoba.ca 992948457 15162 130.179.154.76 (19 Jun 2001 11:00:57 GMT) X-Complaints-To: Postmaster AT cc DOT umanitoba DOT ca NNTP-Posting-Date: 19 Jun 2001 11:00:57 GMT X-Mailer: Mozilla 4.7 [en-gb] (Win95; U) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > gcc -c -I"..\include;..\include\gl" api_arrayelt.c > This is what I've been using with Borland's free compiler for Win32 and it worked for a long time like this... > Btw, does -I really accept multiple directories like that? As far as > I can tell from GCC docs, it can only accept a single directory. So > what you really should do is modify the command like this: > > gcc -c -I..\include -I..\include\gl api_arrayelt.c Apparently DJGPP wants directories like above and in quotation marks :) For instance, I just noticed that if you compile gcc my_dir\file.c and file has #include "local_include.h" where local_include.h is in the . directory, you must specify -I".\" as otherwise the compiler will switch directory to my_dir and not find the local_include.h Don't know if that is the way it's suppose to be... Anyway, thank you for your help, Adam