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.

CCS/TMS320C6678: How to use '--search_path' linker option?

Part Number: TMS320C6678


Tool/software: Code Composer Studio

I see the 'C6000 Assembly Tools Manual'. I found new linker option '--search_path'.

In my Thinking, completed code is same below.
Test:
{
--search_path=../../Source
--search_path=../Source
--library=A.lib (.const)
--library=A.lib (.far)
}

Before do that, I made test code.
Test:
{
--search_path=../../Source
--library=A.lib (.const)
--library=A.lib (.far)
}
But It have a compile error. It occured in linker's --search_path option. error message is 3 line.
line 71: error: -l must specify a filename
line 71: fatal error: cannot open file
"../../Source": Permission denied

How can I solve this ploblem?
When I used below code, It work so good!
Test:
{
--library=../../Source/A.lib (.const)
--library=../../Source/A.lib (.far)
}

  • These lines ...

    Son Jaehyun said:
    --search_path=../../Source
    --search_path=../Source

    ... cannot be written inside the SECTIONS directive like that.  You have to move those lines to the start of the linker command file.  Or, even better, move them to the command line.

    If you move the --search_path options to the command line, they must appear after the --run_linker (equivalent short form is -z) option.  If you want to specify these directories before --run_linker, you must use the option --include_path instead of --search_path.  

    Thanks and regards,

    -George