Compiler/Linker Gurus,
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?
Thanks,
Trey German
C2000 Apps
C2000 Applications
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,
-George
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.
Trey