Subj : Re: Compile and Link To : borland.public.cpp.borlandcpp From : Ed Mulroy [TeamB] Date : Tue Oct 05 2004 10:56 am > The directory structure: > main.c > > - iolib.h > - iolib.c If that is how the project window in the IDE looks then highlight the iolib.h line and press the delete key to remove the line. Header files are part of the project because of the #include in code and should not be listed as a project source file. As for when you are working from the command line or in a make file: The -I option (capital 'i') specifies the path to search for include files. While that allows you to say something like -Ic:\borlandc\include;.\inc on the command line that is a lot of typing. An easier way might be to copy the compiler's cfg file (BCC.CFG if I remember correctly) from the compiler's BIN directory to the project directory. Rename it to something else, perhaps to your project's name, to avoid confusion. Make alterations as you like to it such as added include paths (remember, multiple paths for the -I option are separated by semicolons). Then specify that on the command line. For example, if the project config file is MYPROJ.CFG then the command line to bcc would start with bcc +myproj.cfg and the rest of the command would follow the cfg file name. Side note: In the comments in the make file I posted the target file is sometimes given as source1.exe I had missed that you wanted the target to be abc.exe and when I corrected that error at the end, I missed a couple of occurances in the comments. They should be abc.exe and not source1.exe .. Ed > Magix wrote in message > news:4161fb5c@newsgroups.borland.com... > > okie. Thanks for the info. > if in my main.c contains #include "iolib.h", and this >iolib.h is stored in a subfolder called inc. How can I > make the compiler search for this "inc" folder, besides > specifying #include "inc/iolib.h" in main.c? I always got > this message: > Error E2209 main.c 10: Unable to open include file 'iolib.h' > > The directory structure: > main.c > > - iolib.h > - iolib.c .