CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

Compiler Include file path

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Prashant Patel



Joined: 19 Jul 2004
Posts: 33

View user's profile Send private message

Compiler Include file path
PostPosted: Tue Oct 26, 2004 3:19 pm     Reply with quote

Hi...

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

View user's profile Send private message Send e-mail

PostPosted: Tue Oct 26, 2004 10:02 pm     Reply with quote

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)
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group