-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
vsnprintf the only API preventing XP use, and CMake build failing #726
Comments
Perhaps this can solve your issue: http://stackoverflow.com/questions/32418766/c-unresolved-external-symbol-sprintf-and-sscanf-in-visual-studio-2015 |
Ive tried with VS2010 and VS2013, but successfully build the .lib but am unable to link to the lib due to vsnprintf The link you described says to include a legacy .lib, but that only exists in VS2015! so I'm downloading VS2015 now (several gigs and its slow) so hopefully i'll be able to try that soon, but I would've thought itd be possible to use VS2010 or VS2013 to create a lib that worked on XP (it doesnt really make sense having to use 2015 for that!) ----- Original Message ----- Perhaps this can solve your issue: http://stackoverflow.com/questions/32418766/c-unresolved-external-symbol-sprintf-and-sscanf-in-visual-studio-2015 — |
Still no luck. I installed VS2015 (to add to 2008, 2010 and 2013) which had the legacy .lib files to link to, but then it just gives me even more errors for missing functions: I also tried with various different "Platform Toolset" in Project Properties including XP-specific ones, but no luck I would've thought somebody would've used Capstone as a static library with XP before!? ----- Original Message ----- Perhaps this can solve your issue: http://stackoverflow.com/questions/32418766/c-unresolved-external-symbol-sprintf-and-sscanf-in-visual-studio-2015 — |
I found this but im not sure how to apply it to Capstone (it says the fix is to "delete any declarations to vsnprintif in user code", but that doesnt sound too safe as im guessing the code is there for a reason!?) snprintf and vsnprintf: |
Great, would you mind sending a pull req to update the docs with this trick? |
Fantastic!!!:) Could you please elaborate on what you mean by "Just CMake to a visual studio solution"? I'm new to CMake |
Just output a visual studio solution. Just select visual studio 2013 in the
|
can you generate .SLN file like this on Windows (this is for Win64, you can also do that for Win32), then open .SLN file to compile, and report the result?
|
Me?
|
yes, thanks. |
It appears to be just the tests that fail to compile. My CMake configuration (notice how I unchecked the TESTS): capstone-static project properties 1: capstone-static project properties 2 (not required): The solution + binaries so you can test if it runs on XP for yourself: https://mega.nz/#!S4IxCYTL!W1tSm8oFjfrXoWeM5jblKRtA6MoEVa3s7duEqMgOTT0 |
I pushed a fix that compiles the regression test successfully, see MSDN for more information. On Visual Studio 2015 someone uncommented the
|
fixed issue #726 (snprintf undefined in test_arm_regression)
Close this issue for now because of legacy, we are preparing to release Capstone 5.0, plz feel free to open a new issue if that still has this issue. |
I can successfully cleanly build the x86/x64 static libs using \Msvc\ but cannot use link the lib into my exe in XP as vsnprintf/_vsnprintf isn't exported from msvcrt. It's the only thing stopping it from working on XP.
Capstone.DLL itself doesn't actually import vsnprintf ... but the LIB does!?
Capstone Support suggested I try the CMake compile instead of Msvc, so I did, exactly as per the instructions, but that failed and I was instructed to make a Github New Issue. Any ideas?? I have VS2010 and VS2013, tried from the cmdprompt shortcut of each. CMake and Nasm are also both installed.
Here's the output from the cmake command, as per COMPILE_CMAKE.TXT
The text was updated successfully, but these errors were encountered: