From: j DOT aldrich6 AT genie DOT com Message-Id: <199608090021.AA077070110@relay1.geis.com> Date: Thu, 8 Aug 96 23:58:00 UTC 0000 To: landmark AT vcn DOT bc DOT ca Cc: djgpp AT delorie DOT com Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=us-ascii Subject: Re: DJGPP config Reply to message 1629952 from LANDMARK AT VCN. on 08/01/96 10:38AM >I was wondering where do you put your source files (the ones you create) >in DJGPP? Because everytime i use a #include , i don't think >i'll find it in the source files directory. DJGPP requires that you correctly set up the "DJGPP" environment variable so it knows where to find *its* files. Assuming you have done this correctly, here's a brief list of where things are expected to be: DJGPP's general(C) header files: c:/djgpp/include DJGPP's C++ header files: c:/djgpp/lang/cxx DJGPP's ObjC header files: c:/djgpp/lang/objc DJGPP's library files: c:/djgpp/lib Your source code can go anywhere you please; any header files YOU create should also go in the same directory. To use them, put double quotes ("") around them instead of (<>) in the #include directive. Example: #include /* The compiler looks for stdio.h in its normal, predefined paths. */ #include "myheader.h" /* The compiler looks for myheader.h in the CURRENT directory. */ >my source files are in C:\DJGPP\SOURCE >my .h files are in c:\DJGPP\INCLUDE I guess it's ok to put your source under the DJGPP tree; it's not what I would do though. Actually, you might have trouble with this if you upgrade to future versions of DJGPP. (One thing that comes to mind is deleting the entire v2 tree, accidentally taking your programs with it.) I recommend a separate directory on your hard drive for your programs. However, you should NOT EVER put your header files into DJGPP's include dir! As I said above, place them into the same directory as your source code and use "" instead of <> to include them. There should be no need to move any of the DJGPP header files though, as long as you're configured properly. John