当前位置: 技术问答>linux和unix
如何将Linux下的代码移植到VC中?谢谢!
来源: 互联网 发布时间:2016-02-10
本文导语: Linux下的代码中用到dirent.h, pthread.h等Linux下的库,请问如何将这个程序移植到VC中,我装了CygWin,可不知怎么做,下面是Linux代码中的README文件,里面说了怎么移植,小弟对Linux一点不熟,请各位指教!谢谢!!! Buil...
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.
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.
|
To build, type 'make'.
|
To build, type 'make '.
-----------------------------
请问这句话是什么意思?该怎么用?多谢!
======================================
启动linux shell,进入源代码目录,输入make,回车,就自动编译程序。
-----------------------------
请问这句话是什么意思?该怎么用?多谢!
======================================
启动linux shell,进入源代码目录,输入make,回车,就自动编译程序。
|
windows做的线程相对来说不错,可以不移了
|
什么软件?应该有windows版的。这样直接移植可就麻烦喽。
|
CygWin就是用来移植的,你直接在CygWin里面编译
|
在CygWin里面编译能移植到vc中?