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.
Tool/software: TI C/C++ Compiler
Hi all,
I'm having this error while linking :
"
undefined first referenced
symbol in file
--------- ----------------
I2C_socGetInitCfg ./I2CDriver.obj
I2C_socSetInitCfg ./I2CDriver.obj
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "LDV.out" not built
"
I understand that the reason for the linker error is due to the fact the my main is a cpp file, and the implementation of these functions is in a c file (these specific functions are in I2C_soc.c) inside a class that I created.
How can i overcome this issue?
Best,
Ronen
The most common reason for this problem is failure to apply extern "C" to functions either defined in C, or called from C. For more details, please see this FAQ (not from TI).
Thanks and regards,
-George