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

Adding include path to command line

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



Joined: 10 Aug 2004
Posts: 6

View user's profile Send private message

Adding include path to command line
PostPosted: Tue Aug 10, 2004 5:54 pm     Reply with quote

Hello,

I am trying to add an include path to the command line using I="" or I+="" but for some reson the files in the directory are not being included. I am using Textpad to invoke the compiler with the command:

ccsc I+="C:\Lib" +FH +EA +STDOUT $filename

The program compiles fine if I place the included files in the directory with the c file, or if I add the include path to a .PJT file, but not if I add the include path to the command line parameters.

Also, the program doesn't compile even when I try executing the below command from the command prompt because it can't find the include files.

ccsc I+="C:\Lib" +FH +EA +STDOUT text.c

Does anyone have any suggestions that I could try that would allow ccsc to search the include directory?

Thanks,

Luke
lukeh
Guest







Include Path
PostPosted: Wed Aug 11, 2004 9:43 am     Reply with quote

Does nobody know how to add an include path to the command line ccsc compiler?

Luke Smile
hlukeh



Joined: 10 Aug 2004
Posts: 6

View user's profile Send private message

include path in command line
PostPosted: Wed Aug 11, 2004 9:59 am     Reply with quote

For anyone who is interested, I figured out how to add an include path to the command line.

There seem to be two ways, and in both cases, the option I+="..." does not seem to work. You can either add ALL of your include paths to the ccsc.ini file or you can add ALL of the include paths to the command line argument using the I="..." option like:

ccsc +FH +EA +STDOUT I="C:\PROGRA~1\PICC\devices\;C:\PROGRA~1\PICC\drivers\;C:\Lib\" text.c
fvnktion



Joined: 27 Jun 2006
Posts: 39

View user's profile Send private message

PostPosted: Wed Aug 27, 2008 2:45 pm     Reply with quote

hlukeh,

Thanks for posting your findings. Saved me a lot of time as i was having the same trouble.
hlukeh



Joined: 10 Aug 2004
Posts: 6

View user's profile Send private message

Path
PostPosted: Mon Sep 08, 2008 8:35 am     Reply with quote

No problem. It's pretty cool that this information is still useful four years after it's initial post!

Luke
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