We are using CCS PCM v3.202 C Compiler with Microchip
MPLAB IDE 6.6 for 16F877.
We have purchased Graphics LCD Driver from Ramtex
Engineering. To use this driver library with our
project, it is required to include compiler include
file path for the following.
CurrentDirectory;\GLCD\INC;\GLCD\FONTS;
How can we set it?
I have try to set it but, it is still giving error
that "File can not be opened" which is placed at
\GLCD\INC.
Can anybody give me idea about, where exactly I set
the include path in MPLAB IDE 6.6 to use files at above
folders in our program?
Thanks in advanced...
Regards
Prashant
Mark
Joined: 07 Sep 2003 Posts: 2838 Location: Atlanta, GA
Posted: Tue Oct 26, 2004 10:02 pm
I belive you already have the answer:
Quote:
Directories
The compiler will search the following directories for Include files.
Directories listed on the command line
Directories specified in the .PJT file
The same directory as the source file
By default, the compiler files are put in C:\Program Files\PICC and the example programs and all Include files are in C:\Program Files\PICC\EXAMPLES.
The compiler itself is a DLL file. The DLL files are in a DLL directory by default in C:\Program Files\PICC\DLL. Old compiler versions may be kept by renaming this directory.
Now looking at the manual:
Quote:
I+="..."
Same as I="..." Except the path list is appended to the current list
i+"..."
Set include directory search path, for example:
I="c:\picc\examples;c:\picc\myincludes"
If no I= appears on the command line the .PJT file will be used to supply the include file paths.
So you can
1. Include the full path in the include statement
2. Place them in the same directory
3. Put them in one of the other "include" directories
4. Add the include to the command line (alternate settings in MPLAB)
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum