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.

'rts2xx.lib' exists and I don't have any clue why the linker doesn't find it.

Other Parts Discussed in Thread: CCSTUDIO

I try to learn how to use CCStudio_v3.3 without success.

  • I launched set up for F28xx Simulator Tutorial
  • I opened a new project in C language

"

#include <stdio.h>

main()

{

Printf("Hello World\n");

}

"

  • I added the to the project linker "C:\CCStudio_v3.3\C2400\cgtools\lib\lnk.cmd"

 

But I got an error during building the project

C:\CCStudio_v3.3\C2400\cgtools\lib\lnk.cmd, line 14:   error:

                         can't find input file 'rts2xx.lib'

 

'rts2xx.lib' exists and I don't have any clue why the linker doesn't find it.

 

Please send me a solution as soon as possible.

  • There are a couple of things going on here.

    Since you added lnk.cmd to the project and this file contains the line "-l rts2xx.lib" which links in the runtime library, you also need to specify the path to the runtime library with the -i option. This is available in the CCS project options under Linker->Libraries->Search Path. An alternate option is to add the runtime library directly to the project and remove the "-l rts2xx.lib" line from the linker command file.

    Also, the linker command file you are using is for C2400. If your project is for C28x, use one of the linker command files from the tutorial directories for C28x (C:\CCStudio_v3.3\tutorial\sim28xx\...) as a starting point, and add the runtime library rts2800_ml.lib to the project.