Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can I use CCS macros, such as $(Install_dir), inside my *.opt (and *.cmd) files?

CCS files macros
0
Posted

Can I use CCS macros, such as $(Install_dir), inside my *.opt (and *.cmd) files?

0

No. CCS macros are only supported in *.pjt files. How CCS macros work is CCS will read the *.pjt file and expand any CCS macros it recognizes before the executing a command such as a build request. For example, on a build command, if macros are used in the *.pjt file to specify include search paths: -i”$(Install_dir)\c6000\csl\include” CCS will read and expand this to (Assuming the CCS in use is installed in C:\CCStudio_v31): -i”C:\CCStudio_v31\c6000\csl\include” And pass this include search path to the compiler. However using macros in *.opt files will fail since *.opt files are never read by CCS (and never expanded) but simply passed to the compiler as a valid compiler option (-@”C:\myfile.opt”). Since the compiler does not understand the macro, the search path will not be valid. The same limitation applies for *.cmd files.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123