Re: Building openssh source code in Visual Studio

On Mon, 2008-05-05 at 23:20 +0000, swetha.mani@xxxxxxxxx wrote:
Hi all,

I have just joined this group. I have downloaded the ssh windows
source code ( for cygwin ) from sourceforgenet
( . I am trying to get it
to build in Visual Studio , but am getting a lot of errors with the
linux header files being used in the code. an example is

Error 1: fatal error C1083: Cannot open include file: 'sys/socket.h': No such file or directory

This isn't a "linux" header file. It is a standard POSIX header file
(and it is proper to #include it in Cygwin) that all UNIX-like systems
are expected to have. Cygwin *does* have this header, you need to use
the proper include path.

My development environment is Windows XP with cygwin and VS2005.

Your Visual Studio 2005 environment needs to be set up to use the Cygwin
GCC compiler, linker, and needs the cygwin library and include paths
properly configured in it to work. I've never used Visual Studio 2005
for anything. I don't even know if you can build against cygwin (or any
non-MicroSoft environment) with VS2005. Try using GCC instead.

Thanks in advance,

Coleman Kane

Attachment: signature.asc
Description: This is a digitally signed message part