如何将Linux下的代码移植到VC中?谢谢!

rabbit729 2007-09-19 06:28:04
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.
...全文
164 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
hifrog 2007-09-20
  • 打赏
  • 举报
回复
在CygWin里面编译能移植到vc中?
hzcpig 2007-09-19
  • 打赏
  • 举报
回复
CygWin就是用来移植的,你直接在CygWin里面编译
hifrog 2007-09-19
  • 打赏
  • 举报
回复
To build, type 'make '.
-----------------------------
请问这句话是什么意思?该怎么用?多谢!
======================================
启动linux shell,进入源代码目录,输入make,回车,就自动编译程序。
hifrog 2007-09-19
  • 打赏
  • 举报
回复
什么软件?应该有windows版的。这样直接移植可就麻烦喽。
rabbit729 2007-09-19
  • 打赏
  • 举报
回复
to:dai_weitao
To build, type 'make '.
-----------------------------
请问这句话是什么意思?该怎么用?多谢!
dai_weitao 2007-09-19
  • 打赏
  • 举报
回复
To build, type 'make'.
hefuhua 2007-09-19
  • 打赏
  • 举报
回复
windows做的线程相对来说不错,可以不移了

23,121

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧