• 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 » Microcontrollers » MSP430™ Microcontrollers » MSP430 Ultra-Low Power 16-bit Microcontroller Forum » MSP430 HID_Demo_App linker errors
Share
MSP430™ Microcontrollers
  • Forum
  • Announcements
  • E2E Wiki
Options
  • Subscribe via RSS
MSP430 Resources
  • MSP430 Product Folder
  • MSP-EXP430G2 - MSP430 LaunchPad Value Line Development kit
  • MSP430 Getting Started Guide
  • MSP430 Microcontroller Projects
  • More Resources >
  • Forums

    MSP430 HID_Demo_App linker errors

    This question is not answered
    MikeH
    Posted by MikeH
    on Mar 22 2012 06:59 AM
    Guru12685 points

    I am trying to build the  MSP430 USB HID Application using VS2010. I have downloaded and installed the latest WDK (7.1) and added the links to c:\<WinDDK Install>\<Build Version>\inc\api\  and c:\<WinDDK Install>\<Build Version>\inc\crt\  . I have also added a link to c:\<WinDDK Install>\<Build Version>\lib\wxp\i386 in the linker properties. However, I get the following linker errors. Can someone offer suggest on how to get rid of these?

    Error	5	error LNK2001: unresolved external symbol _IID_IFileDialogControlEvents	C:\Users\Mike\Documents\Visual Studio 2010\Projects\MSP430 Windows HID API\Source Code\nafxcwd.lib(dlgfile.obj)	HID_Demo_App
    Error 6 error LNK2001: unresolved external symbol _IID_IFileDialogEvents C:\Users\Mike\Documents\Visual Studio 2010\Projects\MSP430 Windows HID API\Source Code\nafxcwd.lib(dlgfile.obj) HID_Demo_App
    Error 7 error LNK2001: unresolved external symbol _CLSID_FileSaveDialog C:\Users\Mike\Documents\Visual Studio 2010\Projects\MSP430 Windows HID API\Source Code\nafxcwd.lib(dlgfile.obj) HID_Demo_App
    Error 8 error LNK2001: unresolved external symbol _CLSID_FileOpenDialog C:\Users\Mike\Documents\Visual Studio 2010\Projects\MSP430 Windows HID API\Source Code\nafxcwd.lib(dlgfile.obj) HID_Demo_App
    Error 9 error LNK2001: unresolved external symbol _IID_IPropertyStore C:\Users\Mike\Documents\Visual Studio 2010\Projects\MSP430 Windows HID API\Source Code\nafxcwd.lib(dlgfile.obj) HID_Demo_App
    Error 10 error LNK2001: unresolved external symbol _IID_IShellItem2 C:\Users\Mike\Documents\Visual Studio 2010\Projects\MSP430 Windows HID API\Source Code\nafxcwd.lib(dlgfile.obj) HID_Demo_App
    Error 11 error LNK2001: unresolved external symbol _FOLDERID_LocalAppData C:\Users\Mike\Documents\Visual Studio 2010\Projects\MSP430 Windows HID API\Source Code\nafxcwd.lib(afxdatarecovery.obj) HID_Demo_App
    Error 12 error LNK2001: unresolved external symbol _IID_IPreviewHandlerVisuals C:\Users\Mike\Documents\Visual Studio 2010\Projects\MSP430 Windows HID API\Source Code\nafxcwd.lib(doccore.obj) HID_Demo_App
    Error 13 error LNK2001: unresolved external symbol _IID_IPreviewHandler C:\Users\Mike\Documents\Visual Studio 2010\Projects\MSP430 Windows HID API\Source Code\nafxcwd.lib(doccore.obj) HID_Demo_App
    Error 14 error LNK2001: unresolved external symbol _IID_IInitializeWithStream C:\Users\Mike\Documents\Visual Studio 2010\Projects\MSP430 Windows HID API\Source Code\nafxcwd.lib(doccore.obj) HID_Demo_App
    Error 15 error LNK1120: 10 unresolved externals C:\Users\Mike\Documents\Visual Studio 2010\Projects\MSP430 Windows HID API\Source Code\Debug\MSP430 HID API Demo App.exe 1 1 HID_Demo_App

    Thx,

    MikeH

     

    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Chris Norris
      Posted by Chris Norris
      on Mar 22 2012 19:36 PM
      Intellectual695 points

      I am seeing this problem too.  Not in the TI example, but my own executable which linked to the TI HID sources.  There are many links on Google that describe this issue in VS2010 for non-TI code.

      My build machine uses VS2010 SP1 and the WinDDK 7600.16385.1.  I found the problem when I linked to MFC statically instead of dynamically.

      The missing functions seem to be contained in uuid.lib

      The action that fixed it for me was to go to my project properties, open Configuration Properties, open Linker, select Input, then add this file into the Additional Dependencies:
      C:\Program Files\Microsoft SDKs\Windows\v7.0A\Lib\uuid.lib

      Searching on Google, other people are linking uuid.lib from different locations.  I'm not sure which uuid.lib is preferred, but the above one worked for me.  There is some mystery in linking to Microsoft's libs, especially when multiple SDK versions are installed on the same PC.

      Good luck, and let me know how you solved it for your situation!

      Regards,

      Chris Norris

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • MikeH
      Posted by MikeH
      on Mar 26 2012 10:14 AM
      Guru12685 points

      Chris,

      Chris Norris
      The missing functions seem to be contained in uuid.lib

      Adding this .lib to my linker solved the build problem. Thanks! However, now I am getting errors when I start debugging ("the parameter is incorrect"), and an exception is thrown when I enter the VID/PID for my device(Unhandled exception at 0x75ffb9bc in HID_Demo_App.exe: Microsoft C++ exception: COleException at memory location 0x02dcdcd4..). 

      Is anyone at TI supporting this application?

      Thx,

      MikeH

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Ben Hagan
      Posted by Ben Hagan
      on Apr 05 2012 04:50 AM
      Prodigy215 points

      I am having a similar problem, but the fix proposed by Chris didn't help. Here are the complaints from Visual Studio:

      1>nafxcwd.lib(dlgfile.obj) : error LNK2001: unresolved external symbol _IID_IFileDialogControlEvents
      1>nafxcwd.lib(dlgfile.obj) : error LNK2001: unresolved external symbol _IID_IFileDialogEvents
      1>nafxcwd.lib(dlgfile.obj) : error LNK2001: unresolved external symbol _CLSID_FileSaveDialog
      1>nafxcwd.lib(dlgfile.obj) : error LNK2001: unresolved external symbol _CLSID_FileOpenDialog
      1>nafxcwd.lib(dlgfile.obj) : error LNK2001: unresolved external symbol _IID_IPropertyStore
      1>nafxcwd.lib(dlgfile.obj) : error LNK2001: unresolved external symbol _IID_IShellItem2
      1>nafxcwd.lib(afxdatarecovery.obj) : error LNK2001: unresolved external symbol _FOLDERID_LocalAppData
      1>nafxcwd.lib(doccore.obj) : error LNK2001: unresolved external symbol _IID_IPreviewHandlerVisuals
      1>nafxcwd.lib(doccore.obj) : error LNK2001: unresolved external symbol _IID_IPreviewHandler
      1>nafxcwd.lib(doccore.obj) : error LNK2001: unresolved external symbol _IID_IInitializeWithStream
      1>.\Debug\MSP430 HID API Demo App.exe : fatal error LNK1120: 10 unresolved externals
      1>
      1>Build FAILED.
      1>
      1>Time Elapsed 00:00:01.89
      ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

      Any ideas?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jens-Michael Gross
      Posted by Jens-Michael Gross
      on Apr 05 2012 11:07 AM
      Guru139970 points

      Again, unresolved external symbols mean that you forgot to include something into the list of objects to link.

      However, if using libraries which require other libraries, teh order in which you list them in the project settings is important. The library that has the requirement needs to be listed first, the library that fulfils the requirement needs to follow. So when the second library is checked, the requirements are known.
      If the linker does not find an open requirement when it checks a library, the library isn't linked, even if another library further down the list would require it. In case of circular references (e.g. a function an liba requires a function of libb whcih in turn requires a different function from liba), it might be even necessary to list the same library twice (a, b, a).

      This 'problem' does not apply to normal object files. Those are correctly linked in any order. It only applies to libraries.

      _____________________________________
      Before posting bug reports or ask for help, do at least quick scan over this article. It applies to any kind of problem reporting. On any forum. And/or look here.
      If you cannot discuss your problem in the public, feel free to start a private conversation: click on my name and then 'start conversation'. But please do so only if you really cannot do it in a public thread, as I usually read all threads. And I prefer to answer where others can profit from it (or contribute to it) too.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Ben Hagan
      Posted by Ben Hagan
      on Apr 06 2012 03:45 AM
      Prodigy215 points

      I figured out the problem -- the readme file is incorrect if you are using a windows 7 machine. For a windows 7 machine, step 7 should be:

      7. Include:                                                              |
            a. c:\<WinDDK Install>\<Build Version>\lib\win7\i386

      Then after getting the project to compile, it had linker errors when I tried to run the program. I fixed this by changing the project name from "'HID_Demo_App'" to "MSP430 HID API Demo App".

      FYI -- I am also using MS Visual Studio 10, Professional Edition.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Ben Hagan
      Posted by Ben Hagan
      on Apr 06 2012 03:49 AM
      Prodigy215 points

      Chris -- did you find a solution to the "parameter is incorrect" the exception thrown for VID/PID? I am having the same problem.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • MikeH
      Posted by MikeH
      on Apr 06 2012 05:33 AM
      Guru12685 points

      Ben,

      The "Parameter is incorrect" was my problem, not Chris'. I haven't had time to chase this problem down.

      I also noticed you are using VS10 and Windows 7. Same here. Hopefully we can figure this out since TI apparently does not support this.

      Thx,

      MikeH

       

      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