[Error li1021] The following symbols referenced in processor
Hi,
I'm facing the following issue when trying to link my program:
[Error li1021] The following symbols referenced in processor 'P0' could not be resolved:
'' referenced from '.\Release\driver.doj'
'.\driver.c' referenced from '.\Release\driver.doj'
Linker finished with 1 error
cc3089: fatal error: Link failed
Tool failed with exit/exception code: 1.
The linker is not reporting which symbols could not be resolved. How can I debug?
It seems the error is related to the size of my main program (driver.c) that is automatically generated and it a huge file (it calls 138 different functions). Calling only two functions I were able to link the program.
Best regards,
Hi,
The error occurs because the linker cannot find a defining occurrence of the symbol to link against in the current project or in the other projects or shared memory listed.
How to Fix
To fix this problem, you must know where the identified symbol is supposed to be defined. The following are possible causes.
•A file that contains the definition of the symbol is not included in the link. In this case, add the file to the link.
•The symbol is not defined to be global. In this case, open the C or assembly file where the symbol is defined and make sure that the symbol is a global symbol.
•A project does not have a complete list of files to link against. For example, you might have a multiprocessor project in which each processor must link against the shared memory. If you do not include the shared memory file in the list of files to link against, a project might not be able to resolve some symbols.
If you are using CCES,please refer in the CCES help CrossCore Embedded Studio 2.4.0 > Blackfin Development Tools Documentation > Linker and Utilities Manual > Linker and Archiver Messages > Linker Messages > Errors > li1021
If you are using VisualDSP++,please search with keyword li1021.
If you importing the VisualDSP++ project in CCES please look in the below links which helps for your error:
https://ez.analog.com/docs/DOC-2466
https://ez.analog.com/message/114745#114745
https://ez.analog.com/message/132311#132311
Regards,
Kader
Please log in to reply.