TI E2E Community
TI C/C++ Compiler
TI C/C++ Compiler - Forum
C2k Linker not finding C++ symbol
I'm working with a customer trying to help him integrate some C++ code with some C code and we are running into problems. I've been able to solve most of the issues thus far by playing around with the project, but I've hit a problem that I'm having some real trouble with.
The main file is cpp and somewhere in main it is creating an object of type "Access_Type" and then trying to access a member function. See below code snipet:
Access_Type A ( (void*) Dummy_Msg_Buf ); //MessageGen result = A.Unit_Test_Pass(); //MessageGen
When we link, the linker complains that it can't find the symbol Access_Type::UnitTest_Pass();, but Unit_Test_Pass() is clearly defined in a header file which is in fact being included by this source file.
Could you give me some pointers on what could be going wrong here?
We need a complete, compilable test case demonstrating the problem.
In one place you mention Unit_Test_Pass, in another you say UnitTest_Pass. See the difference? It might just be a typo in the forum post. But make sure it isn't a typo in the code. Since this probably isn't the real problem ...
When you send in a test case, it is usually easier to preprocess it as described here.
Thanks and regards,
TI C/C++ Compiler Forum ModeratorPlease click Verify Answer on the best reply to your question.The Compiler Wiki answers most common questions.Track an issue with SDOWP. Enter your bug id in the "Find Record ID" box.
That was a forum post typo.
The customer isn't getting this error, but I am with a modified version of his project. Before I submit something for ya'll to play with, lets wait a little longer. I'm still debugging with the customer.
All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.
TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs andembedded processors, along with software, tools and the industry’s largest sales/support staff.