Buliding a simple main as this:
#include "csl_i2c.h"
void main(){
CSL_I2cSetup i2cSetup;
I2C_setup(&i2cSetup);
}
even if I linked the csl header in the build properties, I obtain three errors:
errors encountered during linking; "prova.out" not built
Linking failed. Check the Console window for details.
unresolved symbol _I2C_setup, first referenced in ./main.obj
...and on the console I read this:
**** Build of configuration Debug for project prova ****
C:\Programmi\Texas Instruments\ccsv4\utils\gmake\gmake -k all
'Building file: ../main.c'
'Invoking: C5500 Compiler'
"C:/Programmi/Texas Instruments/ccsv4/tools/compiler/c5500/bin/cl55" -g --include_path="C:/Programmi/TMS320VC55XCSL-LOWPWR/VC5505_CSL/inc" --include_path="C:/Programmi/Texas Instruments/ccsv4/tools/compiler/c5500/include" --diag_warning=225 --sat_reassoc=off --ptrdiff_size=16 --fp_reassoc=off --memory_model=small --asm_source=mnemonic --preproc_with_compile --preproc_dependency="main.pp" "../main.c"
"../main.c", line 5: warning: last line of file ends without a newline
'Finished building: ../main.c'
' '
'Building target: prova.out'
'Invoking: C5500 Linker'
"C:/Programmi/Texas Instruments/ccsv4/tools/compiler/c5500/bin/cl55" -z -m"prova.map" --warn_sections -i"C:/Programmi/TMS320VC55XCSL-LOWPWR/VC5505_CSL/lib" -i"C:/Programmi/Texas Instruments/ccsv4/tools/compiler/c5500/lib" -i"C:/Programmi/Texas Instruments/ccsv4/tools/compiler/c5500/include" --reread_libs --rom_model -o "prova.out" "./main.obj" -l"rts55.lib"
<Linking>
warning: creating ".stack" section with default size of 0x3e8; use the -stack
option to change the default size
warning: creating ".sysstack" section with default size of 0x3e8; use the
-sysstack option to change the default size
undefined first referenced
symbol in file
--------- ----------------
_I2C_setup ./main.obj
error: unresolved symbols remain
error: errors encountered during linking; "prova.out" not built
>> Compilation failure
C:\Programmi\Texas Instruments\ccsv4\utils\gmake\gmake: *** [prova.out] Error 1
C:\Programmi\Texas Instruments\ccsv4\utils\gmake\gmake: Target `all' not remade because of errors.
Build complete for project prova
What should I do?
Thanks
Andrea