如何将Linux下的代码移植到VC中?谢谢!
Linux下的代码中用到dirent.h, pthread.h等Linux下的库,请问如何将这个程序移植到VC中,我装了CygWin,可不知怎么做,下面是Linux代码中的README文件,里面说了怎么移植,小弟对Linux一点不熟,请各位指教!谢谢!!!
Build Instructions
GNU make is required to build asdcplib. The makefile will work
on win32 systems that have Cygwin and MSVC. Other win32 gmake
packages may or may not work depending upon the availability
of standard POSIX shell commands. You will need gcc to rebuild
the dep.make file.
OpenSSL is also required. See http://www.openssl.org/
If you are building on win32 or a unix with no OpenSSL library
support, you will have to also obtain and build OpenSSL. Unpack
it into the same parent directory as asdcplib/, and rename (or make
a symlink to) the directory as 'openssl':
myhost$ ls -l
total 1761
drwxr-xr-x 1 jhurst None 0 Feb 3 16:37 asdcplib
drwxr-xr-x 56 jhurst None 0 Feb 2 16:35 openssl
To build, type 'make'. There are several test targets but you
need to assemble a set of test files to use them.
I have tested this build on win32, Linux, OpenBSD and Darwin
platforms. Others may work as well.