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.

Linking problem with CCS 5.5.0

Hello,


I'am using the 5.5.0 version of CCS with the c6x Code Gen Tools (7.4.12)

In the 5.1.1 version (with 7.4.12 too) , I was used to put my all include path for the linker in a .cfg file (-i"dir1" -i"dir2") and included this file in the "C6000 Linker">"File Search Path">"Include library file or command file as input" and it worked very well .

Now in the 5.5.0 version it does'nt work, it seems that the linker does'nt take care of the include path in the cfg file , I have the error "canot find file  libname.lib" . If I put the contents of the file directly it works but I don't want to, I want to use a file.

Maybe someone could help me ? thank you very much in advance for your help.

Regards,

Pat.

  • lavenu patrick1 said:
    Now in the 5.5.0 version it does'nt work, it seems that the linker does'nt take care of the include path in the cfg file , I have the error "canot find file  libname.lib" .

    Can you take a closer look at the CCS build console and ensure that the options file is being passed to the linker prior to the libraries? That is, on the command line, -l options_file.cfg should appear before -l libname.lib. That will ensure that the paths to the libraries are known prior to linking in the lbraries.

    You can control the order in which files get passed to the linker via the "Link Order" tab (Project Properties->Build->Link Order tab). Here you can add the options file and libraries and control the order using the Up/Down buttons.

  • Thank you very much for your answer. I check the order and my include path are passed prior to the librairies.

    I would like to add that my cfg files are working very well with CCS 5.1.1 . I think that something changed with the 5.5 version. The cmd file doesn't accept include path library now . Could you tell me how I could by pass this problem in 5.5 ? thank you very much for your help.

    regards,

    Pat.
  • Could you please copy and paste the full output of the CCS build console to a text file and attach it here so we can take a look? Also please attach the .cfg file that contains the include path options.

  • Thank you very much for your answer.
    I noticed a difference between the 2 versions, I think that it is my problem :
    In CCS 5.1.1 : the linker cmd line build by CCS put the cmd file(linker command file) after the cfg file (add to the file search Path of my C6000 linker).
    In CCS 5.5, the linker cmd line put the linker cmd file before the cfg file so the linker could not find the library that were inside my cmd file ( the include path are in my cfg file).
    Do you know how I can force CCS to put the cmd file after my cfg file in the command line ? I can include my cfg file (include path of the library) in the command file of the compiler but it is not clean.

    thank you in advance for your help.

    regards.

    pat.
  • lavenu patrick1 said:
    Do you know how I can force CCS to put the cmd file after my cfg file in the command line ?

    This is what I had described in my previous post:

    You can control the order in which files get passed to the linker via the "Link Order" tab (Project Properties->Build->Link Order tab). Here you can add the options file and libraries and control the order using the Up/Down buttons.

  • Thank you very much for your help, it works now using the "Link Order" tab.

    regards.

    Pat