View previous topic :: View next topic |
Author |
Message |
hlukeh
Joined: 10 Aug 2004 Posts: 6
|
Adding include path to command line |
Posted: Tue Aug 10, 2004 5:54 pm |
|
|
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 |
Posted: Wed Aug 11, 2004 9:43 am |
|
|
Does nobody know how to add an include path to the command line ccsc compiler?
Luke |
|
|
hlukeh
Joined: 10 Aug 2004 Posts: 6
|
include path in command line |
Posted: Wed Aug 11, 2004 9:59 am |
|
|
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
|
|
Posted: Wed Aug 27, 2008 2:45 pm |
|
|
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
|
Path |
Posted: Mon Sep 08, 2008 8:35 am |
|
|
No problem. It's pretty cool that this information is still useful four years after it's initial post!
Luke |
|
|
|