Click here to Skip to main content
15,891,375 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
odbccp32.lib(dllload.obj) : error LNK2019: unresolved external symbol __vsnwprintf_s referenced in function _StringVPrintfWorkerW@20
.\Debug/RegConvert.exe : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '-----path-----\VC\bin\link.exe' : return code '0x460'

What I have tried:

i tried adding legacy_stdio_definitions.lib to the linker input.it is building using visual studio but not with command line.i am using 'nmake'
Posted
Comments
Jochen Arndt 11-Aug-17 2:59am    
You are not linking the CRT (C Run Time) library or linking very old version.
In the latter case check which library directories are included when using nmake.
Naveen_vemuri 11-Aug-17 3:33am    
also i need difference between nmake and msbuild?can we use msbuild instead of nmake to build?and in msbuild we use /v for verbose .in nmake to get detailed information what should we use
Jochen Arndt 11-Aug-17 3:44am    
nmake will itself mainly call other commands. So you usually have to pass the verbose option to those commands.

Because it is a linker related problem it, it would be sufficient to make the link calls verbose. Try to get the list of library files linked by your namke file.

Regarding the CRT pathes and libraries see
https://blogs.msdn.microsoft.com/vcblog/2015/03/03/introducing-the-universal-crt/
This has changed with VS 2015 so that it may be the source of your problem if the project was created with an older version.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900