Subject: Re: [libssh2] libssh2-0.15 Problems authenticating

Re: [libssh2] libssh2-0.15 Problems authenticating

From: Guenter Knauf <eflash_at_gmx.net>
Date: Fri, 20 Jul 2007 11:58:42 +0200

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_at_lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libssh2-devel
Received on 2007-07-20