Post Go back to editing

VisualDSP++ 5.1.2 - Error li1021, the complier seemingly can't find #includes

Thread Summary

The user encountered linker errors (li1021) for unresolved symbols like 'adi_initComponents' and 'mtbl_clear' when building an ADSP-BF547 project. The final answer suggests ensuring that the header and source files defining these symbols are included in the project. The user has already tried adding the .h files to the project and adjusting the search directories, but the issue persists. The user is concerned about sharing proprietary source code and asks about the process for confidential support.
AI Generated Content
Category: Software
Software Version: VisualDSP++ 5.1.2

so I get the following:

[Error li1021] The following symbols referenced in processor 'p0' could not be resolved:
'adi_initComponents [_adi_initComponents]' referenced from '.\Release\UltraSonic.doj'
'mtbl_clear(medianTable *) [_mtbl_clear__FP11medianTable]' referenced from '.\Release\UltraSonic.doj'
'mtbl_getMedian(medianTable *) [_mtbl_getMedian__FP11medianTable]' referenced from '.\Release\UltraSonic.doj'
'mtbl_insert(medianTable *, float) [_mtbl_insert__FP11medianTablef]' referenced from '.\Release\UltraSonic.doj'
'mtbl_isFull(medianTable *) [_mtbl_isFull__FP11medianTable]' referenced from '.\Release\UltraSonic.doj'

Linker finished with 1 error
cc3089: fatal error: Link failed
Tool failed with exit/exception code: 1.
Build was unsuccessful.

Ok, fine. Those things live in:

#include "UltraSonic/MedianTable.h"
#include "UltraSonic/system/adi_initialize.h"

... and "UltraSonic/system/adi_initialize.h" #includes </sys/platform.h> that #includes  <sys/_adi_platform.h>

So I'll change the code to mention

#include "MedianTable.h"
#include "adi_initialize.h"

...And change the source code in the right places. (What could possibly go wrong!)

Unfortunately, this doesn't work either. The error looks exactly the same? I'd expect it to maybe be confused over </sys/platform.h> and <sys/_adi_platform.h>, but no, I still get:

[Error li1021] The following symbols referenced in processor 'p0' could not be resolved:
'adi_initComponents [_adi_initComponents]' referenced from '.\Release\UltraSonic.doj'
'mtbl_clear(medianTable *) [_mtbl_clear__FP11medianTable]' referenced from '.\Release\UltraSonic.doj'
'mtbl_getMedian(medianTable *) [_mtbl_getMedian__FP11medianTable]' referenced from '.\Release\UltraSonic.doj'
'mtbl_insert(medianTable *, float) [_mtbl_insert__FP11medianTablef]' referenced from '.\Release\UltraSonic.doj'
'mtbl_isFull(medianTable *) [_mtbl_isFull__FP11medianTable]' referenced from '.\Release\UltraSonic.doj'

Linker finished with 1 error
cc3089: fatal error: Link failed
Tool failed with exit/exception code: 1.
Build was unsuccessful.

Any suggestions?