• 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 » Code Composer Studio » Code Composer Forum » unresolved symbol _main, referenced in rts2800_fpu32.lib
Share
Code Composer Studio
  • Forum
  • Announcements
Options
  • Subscribe via RSS
Common Questions
  • Code Composer Studio Forum Usage Guidelines

  • Resources
  • Code Composer Studio (CCStudio) Product Folder
  • Troubleshooting CCS
  • CCS Wiki
  • Download CCS
  • Order CCS
  • Tools Insider Blog
  • Bug Tracking
  • Forums

    unresolved symbol _main, referenced in rts2800_fpu32.lib

    This question is answered
    jimj2713
    Posted by jimj2713
    on Apr 05 2012 12:34 PM
    Prodigy230 points

    I am moving some 28335 projects from CC4 to CC5. I had to rebuild the project settings files as they did not import across properly, and I only have one error remaining: unresolved symbol _main, first referenced in C:\Software\Eco\rts2800_fpu32.lib<args_main.obj>.

    This lib file is locally referenced (copied into the project directory), and of course main() exists. I tried playing with the linker-orders, which didn't help. This also looks like it could be an include-file problem, but I am including the 2 similar CC5 directories that I was in my CC4 project.

    Does anyone know if a certain header file must be included or a certain path referenced?

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Lisa TI
      Posted by Lisa TI
      on Apr 05 2012 13:02 PM
      Guru100045 points

      HI,

      have a look at this wiki.  It could well be you are simply finding the wrong include area.  Please keep us informed.

      http://processors.wiki.ti.com/index.php/Include_paths_and_options

      Best Regards,

      Lisa

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • jimj2713
      Posted by jimj2713
      on Apr 05 2012 13:35 PM
      Prodigy230 points

      Lisa,

      I had seen that Wiki, and my Linker File Search Path looks just like that Wiki "Adding Libraries -- Proper Include" section. I agree, it must be an include-file, include-path, or linker-order issue, and I have tried many combinations. 

      This is a basic-C question, but I don't know the answer -- in what header file is main declared? That same header file would have to be included by the rts2800_fpu32.lib, and I don't have the source to that library. Do you know how the library references main (what header is included)?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Lisa TI
      Posted by Lisa TI
      on Apr 05 2012 13:49 PM
      Guru100045 points

      Hi,

      hmm did you add the library file in the top dialogue box?  Could you send some screenshots?  When importing did you select "copy project into workspace"? Did you also add the directory to your include options?

      Best Regards,
      Lisa

      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 05 2012 14:12 PM
      Mastermind40870 points

      There is no prototype for main in the library because there is more than one valid prototype for main.  The function main is handled as a special case by the compiler.  The library does not provide a definition of main; you must provide one as part of your program.  Is your main function provided in an assembly file?  If so, does it have a leading underscore?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • jimj2713
      Posted by jimj2713
      on Apr 05 2012 14:31 PM
      Verified Answer
      Verified by Lisa TI
      Prodigy230 points

      My main function is in main.c (with no underscore).

      I have resolved this problem for now. Yours and Lisa's comments got me thinking this was some corruption in the CCS5 project settings. I had previously created the CCS5 project in the same directory tree as the CCS4 project -- because I need the source files to remain in the same directory for my SW configuration management. I just created a brand new project in a separate directory and I copied all of the source there, and it built without error. Once I get CCS5 completely working, I suspect I may have to delete all of the old CCS4 project files and use CCS5 only.

      Thanks.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Lisa TI
      Posted by Lisa TI
      on Apr 05 2012 14:34 PM
      Guru100045 points

      Very glad to hear you managed to get it building and working.

      All the best with deveiopment and ... thanks Archeaologist ...

      Best Regards,
      Lisa

      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