Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. error LNK2019: unresolved external symbol __stdio_common_vsprintf referenced in function sprint VS 2015 Pro Windows 10

error LNK2019: unresolved external symbol __stdio_common_vsprintf referenced in function sprint VS 2015 Pro Windows 10

Scheduled Pinned Locked Moved C / C++ / MFC
visual-studiocsharphelpannouncementworkspace
3 Posts 2 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    ForNow
    wrote on last edited by
    #1

    This is a real baffler sounds real simple just find the right .lib well I did and still Seems like they moved things around in VS 2015. But I did find the lib legacy_stdio_definitions.lib I even dumpbin /export it and its there. I have it linker->additional dependencies. The folder is C:\Program Files (x86)\Microsoft visual Studio 14.0\VC\lib\AMD64 My configuration is Release x64 thanks

    J 1 Reply Last reply
    0
    • F ForNow

      This is a real baffler sounds real simple just find the right .lib well I did and still Seems like they moved things around in VS 2015. But I did find the lib legacy_stdio_definitions.lib I even dumpbin /export it and its there. I have it linker->additional dependencies. The folder is C:\Program Files (x86)\Microsoft visual Studio 14.0\VC\lib\AMD64 My configuration is Release x64 thanks

      J Offline
      J Offline
      Jochen Arndt
      wrote on last edited by
      #2

      You probably refer to the Visual C++ change history 2003 - 2015[^]:

      Quote:

      The printf and scanf family of functions are now defined inline. The definitions of all of the printf and scanf functions have been moved inline into , , and other CRT headers. This is a breaking change that leads to a linker error (LNK2019, unresolved external symbol) for any programs that declared these functions locally without including the appropriate CRT headers. If possible, you should update the code to include the CRT headers (that is, add #include ) and the inline functions, but if you do not want to modify your code to include these header files, an alternative solution is to add an additional library to your linker input, legacy_stdio_definitions.lib.

      Have you tried including the header files? You may also try to define _NO_CRT_STDIO_INLINE before including any header files.

      F 1 Reply Last reply
      0
      • J Jochen Arndt

        You probably refer to the Visual C++ change history 2003 - 2015[^]:

        Quote:

        The printf and scanf family of functions are now defined inline. The definitions of all of the printf and scanf functions have been moved inline into , , and other CRT headers. This is a breaking change that leads to a linker error (LNK2019, unresolved external symbol) for any programs that declared these functions locally without including the appropriate CRT headers. If possible, you should update the code to include the CRT headers (that is, add #include ) and the inline functions, but if you do not want to modify your code to include these header files, an alternative solution is to add an additional library to your linker input, legacy_stdio_definitions.lib.

        Have you tried including the header files? You may also try to define _NO_CRT_STDIO_INLINE before including any header files.

        F Offline
        F Offline
        ForNow
        wrote on last edited by
        #3

        putting _NO_CRT_STDIO_INLINE in the preprocessor definitions did the trick thanks

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups