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

Specifying a #include search path under MPLAB (I+= switch)

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



Joined: 14 Nov 2007
Posts: 4

View user's profile Send private message

Specifying a #include search path under MPLAB (I+= switch)
PostPosted: Mon Apr 07, 2008 8:37 am     Reply with quote

Hi all,

I need to specify a search path for #include'd files e.g. "c:\mypath".
According to the CCS V4 reference manual, at the command line I would use the switch "I+=c:\mypath" to add this path to the list of include file search paths. I have tried this from a command line and it works fine.

However, I am building in MPLAB. If I try and specify this path from the MPLAB dialog, by going for:
Project>Build Options>Project>Directories > Show directories for... Include Search Path
and add "c:\mypath" to the list, this path is not searched and I get errors arising from files on this path not being included. Looking in the build output window, I see that MPLAB is actually passing CCSC.EXE the switch
"-I c:\mypath"
as opposed to
"I+=c:\mypath"
which CCSC seems to ignore (no error/no effect)

My current workaround is to check the "Use Alternate Settings" under Project>Build Options>Project>CCS C Compiler, which I don't like, because it requires me to manually specify all command line switches which creates potential confusion and begins to defeat the object of having an IDE.

I may report this as a bug, but my question is, who do I go to? Does this fault lie with CCSC.EXE, MPLAB, or the CCS Toolsuite plugin for MPLAB? What is acually generating the text?

Any information or speculation would be much appreciated.

All the best,

Joe.

My Winning Numbers:
CCSC 4.071
MPLAB 8.00.00.00
Suite_CCSPic 1.14.0.0
Target PIC18F4580
quantum_mechanic



Joined: 14 Nov 2007
Posts: 4

View user's profile Send private message

PostPosted: Mon Apr 07, 2008 9:19 am     Reply with quote

As seems to be the way with these things, you always find the answer just after posting the question Embarassed

Went on the CCS download page and got Suite_CCSPic v2.0.0.7 and now everything works.

Interestingly, after a reboot, MPLAB still reports the old version number of this DLL in Help > About.
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