Hi Paul, > On a side note, the ssh2 example needs a little modification to properly > compile (at least on vs 2005 ;p ). There's two things that need to be > changed.
> The #include <libssh2_config.h> needs to be listed first in the include > list. Otherwise some compilers will not have the #defines properly setup > before the other #includes are examined. VS 2005 is an example of this. fixed in CVS. > And the strcasecmp (might have typed it wrong) should probably be > something > more like strcmp. I couldn't find the proper include for the first one. > Its probably better to use strcmp anyway just because it seems to be more > standard, you only need: #include <string.h> no - wrong approach, that wont work on Linux and other platforms; MSVC is the culprit; and even MingW32 compiler has strcasecmp() and friends; but I've addded some defines to libssh2_config.h which should fix this. greetz, Guenter. ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ libssh2-devel mailing list libssh2-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libssh2-devel