-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Building in Microsoft Visual 2017 #7
Comments
Obviously the project is quite old and new visual studio brings new issues.
The error seems to come from the Cypress CyAPI library. You may try to get
a new version from Cypress.
~V
…On Aug 8, 2017 6:05 PM, "quickquestion1" ***@***.***> wrote:
Building this in Microsoft Visual 2017 on windows 7 PC returns an error
requiring an update to a pointer to updated SDK. This is easily fixed by
simply clicking retarget solution.
Then rebuild returns an error that makes no sense seen below
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol _sprintf referenced in function
"public: void __thiscall CCyUSBDevice::UsbdStatusString(unsigned
long,char *)" ***@***.***@@***@***.***) rtd2660
C:\YOURFILEPATH\RTD-2660-Programmer-master\RTD Programmer\CyAPI.lib(CyAPI.obj)
1
Double clicking on this error and MV2017 cannot even find the location to
correct the syntax.
control + f search of entire build for _sprintf returns no results.
How do I correct a syntax error that doesn't exist?
(Obviously change YOURFILEPATH to your file path to get to the folder)
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#7>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/AHxY1t9a41XfhyIvJNJyjMRnANCA1tJmks5sWQW8gaJpZM4OxeR1>
.
|
Did download another version of the CyAPI.lib and got the same error. Could you upload the version of Microsoft Visual Studio that returns no build errors or any suggestions for if not fixing at least finding the error? Alternatively if you could explain how to do this: Also thanks for uploading the code in the first place. |
You need to link with legacy_stdio_definitions.lib and turn off ImageHasSafeExceptionHandlers |
@hasaranga Linking legacy_stdio_definitions.lib worked for me! Looks like VS introduced a universal C Runtime(CRT) in 2015 that got rid of the patchwork backwards compatibility that was available before. This breaks old libraries that rely on the old CRT. Microsoft actually recommends you upgrade your library to run on the Universal CRT. This article does a good job of explaining your options: |
Thank you. I have not compiled software for windows in 10 years. |
Building this in Microsoft Visual 2017 on windows 7 PC returns an error requiring an update to a pointer to updated SDK. This is easily fixed by simply clicking retarget solution.
Then rebuild returns an error that makes no sense seen below
Severity Code Description Project File Line Suppression State
Error LNK2019 unresolved external symbol _sprintf referenced in function "public: void __thiscall CCyUSBDevice::UsbdStatusString(unsigned long,char *)" (?UsbdStatusString@CCyUSBDevice@@QAEXKPAD@Z) rtd2660 C:\YOURFILEPATH\RTD-2660-Programmer-master\RTD Programmer\CyAPI.lib(CyAPI.obj) 1
Double clicking on this error and MV2017 cannot even find the location to correct the syntax.
control + f search of entire build for _sprintf returns no results.
How do I correct a syntax error that doesn't exist?
(Obviously change YOURFILEPATH to your file path to get to the folder)
The text was updated successfully, but these errors were encountered: