This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCSv5.1 M7 - --preinclude issue

Guru 10750 points

Hi,

I'm using the --preinclude Universal_hfiles_test.txt, the first line in the file is - 

-i D:\CCSV5.1_projects\C66x\Utils\diagnostic

but I'm getting errors, it worked with CCSv5.1 M6 the issue is that I have already removed it so I can't recheck it - 

"D:/CCSV5.1_projects/C66x/C66x/Universal_hfiles_test.txt", line 1: warning: last line of file ends without a newline

"D:/CCSV5.1_projects/C66x/C66x/Universal_hfiles_test.txt", line 1: error: expected a declaration

"D:/CCSV5.1_projects/C66x/C66x/Universal_hfiles_test.txt", line 1: error: unrecognized token

"D:/CCSV5.1_projects/C66x/C66x/Universal_hfiles_test.txt", line 1: error: extra text after expected end of number

"D:/CCSV5.1_projects/C66x/C66x/Universal_hfiles_test.txt", line 1: error: unrecognized token

"D:/CCSV5.1_projects/C66x/C66x/Universal_hfiles_test.txt", line 1: error: unrecognized token

"D:/CCSV5.1_projects/C66x/C66x/Universal_hfiles_test.txt", line 1: error: unrecognized token

Thanks,

HR

  • HR,

    Preinclude files are header files, not files with compiler options on them (check section 2.3.2 of the C6000 Compiler User's Guide - SPRU187). Therefore, you could successfully add your file if you use the option Read options from specified file (--cmd_file, -@). Right-click on the project --> Properties --> CCS Build --> C6000 Compiler --> Command Files.

    Regards,

    Rafael

  • Rafael,

    Thanks ! it was my mistake...

    HR