Skip to main content
sisokolov
Associate
August 23, 2016
Question

SOLVED: STM32746G-Discovery STemWin Visual Studio 2015 Build Errors

  • August 23, 2016
  • 2 replies
  • 811 views
Posted on August 23, 2016 at 21:27

The original post was too long to process during our migration. Please click on the attachment to read the original post.
    This topic has been closed for replies.

    2 replies

    slimen
    Visitor II
    August 24, 2016
    Posted on August 24, 2016 at 11:59

    Hi sklv,

    There is a Problem when used Visual Studio 2015.

    As mentioned in the segger forum from this

    http://forum.segger.com/index.php?page=Thread&threadID=2914

    , the workaround for this issue is to change the Project Properties as followed:

    1. Right-Click on the Project (e.g. SimulationTrial) -> Properties

    2 Set Configuration to ''All Configurations''

    3. Go to Configuration Properties -> Linker -> Input.

    4. Set Ignore All Default Libraries: ''No''

    5. Set Ignore Specific Default Libraries: ''LIBC.lib;LIBCMTD.lib''

    6. Go to Configuration Properties -> Linker -> Advanced 

    7. Set Image Has Safe Exception Handlers:''No (/SAFESEH:NO)'' 

    8. Click ''OK''-Button.

    Regards

    sisokolov
    sisokolovAuthor
    Associate
    August 24, 2016
    Posted on August 24, 2016 at 18:57

    Hi,

    Thanks for your reply. After I followed your instructions, I only had one unresolved symbol:

    error LNK2001: unresolved external symbol _sprintf

    I added legacy_stdio_definitions.lib to the linker input (https://stackoverflow.com/questions/32418766/c-unresolved-external-symbol-sprintf-and-sscanf-in-visual-studio-2015)

    And the simulation compiled and ran.

    Thanks again for the input.