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.

How to run cl6x compiler from the command line?

Hi

I need to compile a project source file from the command line, using the C66x v.7.4.2 compiler.  This is necessary for compatibility with a Static Analysis tool (Coverity) that we are trialing.  I am running CCS 5.4 on Windows 7 64-bit.

I tried running the compiler on the file as follows:

C:\ti\ccsv5\eclipse>\ti\ccsv5\tools\compiler\c6000_7.4.2\bin\cl6x -i"C:/ti/ccsv5/tools/compiler/c6000_7.4.2/include" \<my path>\main.c

"\<my path>\main.c", line 22: fatal error: could not open source file "xdc/std.h" 1 fatal error detected in the compilation of "\<my path>\main.c". Compilation terminated.

I guess some environment variables need setting up.  In CCS 3.3 I think this was done by DosRun.bat.  Is there an equivalent batch file for CCS 5.4, or is there a wiki page that describes how to do this?

Best regards

David

  • Hi Dave,

    /xdc/std.h is a header file from xdctools.

    You'll need to add -i"C:\ti\xdctools_3_25_00_48\packages" ( or equivalent ) to the command line arguments.

    I dont think environment variables will come into play when executing from command line.

    Cheers

    Tom

  • David Aldrich92784 said:
    I guess some environment variables need setting up.  In CCS 3.3 I think this was done by DosRun.bat.  Is there an equivalent batch file for CCS 5.4, or is there a wiki page that describes how to do this?

    There is no equivalent batch file.  The environment variable C6X_C_DIR can be used to list directories the compiler will search for include files.  Details can be found in the C6000 compiler manual.  

    Thanks and regards,

    -George