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,
In my project we are using both C and C++ files, We are not using the Ti library files.
We have written our own program for memcpy and memset, while compiling getting below errors
unresolved symbol : memcpy x.cpp
though i am not using memcpy in x.xpp, not sure why compiler is throwing this link error.
When i searched in the x.obj file i could find "this memcpy" text.
Please help me why it is throwing error
Regards,
Somesh
I'm not sure, but I suspect that when you ...
Someswararao malla said:We have written our own program for memcpy and memset
... you didn't qualify those implementations of memcpy and memset as extern "C".
For more background on mixing C and C++ code, please see this FAQ (not from TI).
Thanks and regards,
-George
Hi George,
Thanks for the quick reply,
I did not extern it, but my concern is if i am not using any memcpy in the file why compiler says unresolved error.
Regards,
Somesh
If i try to extern it i am getting below error
error #340: more than one instance of overloaded function "memcpy" has "C" linkage
So I can reproduce the problem, please submit your CCS project. Zip up your project by following the directions in the article Sharing Projects, then attach the zip to your next post.
Thanks and regards,
-George
Since it has been a while, I presume you have resolved your problem. I'd appreciate hearing how you resolved it.
Thanks and regards,
-George