• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Development Tools » TI C/C++ Compiler » TI C/C++ Compiler - Forum » C2k Linker not finding C++ symbol
Share
TI C/C++ Compiler
  • Forum
Options
  • Subscribe via RSS

Forums

C2k Linker not finding C++ symbol

  • Trey German
    Posted by Trey German
    on Apr 13 2012 10:30 AM
    Genius14510 points

    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

    Trey German

    C2000 Applications

    If a post answers your question, please mark it with the "verify answer" button.
    Visit these helpful C2000 Links!
    C2000 TI Wiki Pages
    TI Forum Sitemap
    ControlSUITE
    C2000 Getting Started
    CLA FAQs
    Workshop Material!
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Archaeologist
    Posted by Archaeologist
    on Apr 13 2012 10:50 AM
    Mastermind40870 points

    We need a complete, compilable test case demonstrating the problem.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • George Mock
    Posted by George Mock
    on Apr 13 2012 14:13 PM
    Guru51505 points

    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 Moderator
    Please 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.

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
  • Trey German
    Posted by Trey German
    on Apr 13 2012 14:33 PM
    Genius14510 points

    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

    Trey German

    C2000 Applications

    If a post answers your question, please mark it with the "verify answer" button.
    Visit these helpful C2000 Links!
    C2000 TI Wiki Pages
    TI Forum Sitemap
    ControlSUITE
    C2000 Getting Started
    CLA FAQs
    Workshop Material!
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
TI E2E™ Community
  • Support Forums
  • Blogs
  • Videos
  • Groups
  • Site Support & Feedback
  • Settings
TI E2E™ Community Groups
  • TI University Program
  • Make the Switch
  • Microcontroller Projects
  • Motor Drive & Control
Other Communities
  • Deyisupport
  • Designsomething.org
  • beagleboard.org
  • TI on Element 14
  • TI on TechXchangeSM
Other Technical & Support Resources
  • WEBENCH® Design Center
  • Product Information Centers
  • Technical Documents
  • TI Design Network
  • TI Technical Articles
  • TI Training

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.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
embedded processors, along with software, tools and the industry’s largest sales/support staff.

© Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
Trademarks | Privacy Policy | Terms of Use