Git Product home page Git Product logo

Comments (6)

gvanem avatar gvanem commented on July 22, 2024

I had the same problem and did:

--- a/win32/libssh2_config.h  2016-01-07 14:41:46
+++ b/win32/libssh2_config.h  2016-01-07 14:35:50
@@ -24,7 +24,9 @@
 #define HAVE_SELECT

 #ifdef _MSC_VER
+#if _MSC_VER < 1900
 #define snprintf _snprintf
+#endif
 #if _MSC_VER < 1500
 #define vsnprintf _vsnprintf
 #endif

But I'm not sure this is the right thing to do. Is it not possible to use MSVC 2015 without the Windows-Kit? If so, there could be a test for e.g.:

#if !defined(WINDOWS_KIT_VER)
 #define snprintf _snprintf
#endif

but I failed to find any suitable such symbol in my Windows-Kit 10.0.10150.0. Anyone?

from libssh2.

alamaison avatar alamaison commented on July 22, 2024

This is fixed in git. Please try the latest from there

On Thu, 7 Jan 2016 13:54 Gisle Vanem [email protected] wrote:

I had the same problem and did:

--- a/win32/libssh2_config.h 2016-01-07 14:41:46
+++ b/win32/libssh2_config.h 2016-01-07 14:35:50
@@ -24,7 +24,9 @@
#define HAVE_SELECT

#ifdef _MSC_VER
+#if _MSC_VER < 1900
#define snprintf _snprintf
+#endif
#if _MSC_VER < 1500
#define vsnprintf _vsnprintf
#endif

But I'm not sure this is the right thing to do. Is it not possible to
use MSVC 2015 without the Windows-Kit? If so, there could be a test for
e.g.:

#if !defined(WINDOWS_KIT_VER)
#define snprintf _snprintf
#endif

but I failed to find any suitable such symbol in my Windows-Kit
10.0.10150.0. Anyone?


Reply to this email directly or view it on GitHub
#64 (comment).

from libssh2.

gvanem avatar gvanem commented on July 22, 2024

This is fixed in git.

Not AFAICS. Do you see such a change for libssh2_config.h here:

from libssh2.

alamaison avatar alamaison commented on July 22, 2024

Sorry, I didn't notice that you were using the old visual studio projects from the repo. Please use CMake to generate of VS2015 project file.

from libssh2.

gvanem avatar gvanem commented on July 22, 2024

Sorry, I didn't notice that you

Me? I don't use "visual studio" at all. I hate it.

from libssh2.

alamaison avatar alamaison commented on July 22, 2024

I'm closing this as wontfix. Please use the CMake projects to generate working builds on Windows.

from libssh2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.