H**o 发帖数: 9 | 1 我完全不懂compile, 所以大牛们不要笑话。
现在我有个用C写的程序http://casegroup.rutgers.edu/casegr-sh-2.5.html,可以在unix
底下跑。现在想在windows里跑(没法装cygwin),有什么办法?
谢谢。 |
e****d 发帖数: 895 | 2 Connect to a remote unix server from windows and run your C program?
This is nothing related to compilation unless you want to port a unix C
program
to windows.
【在 H**o 的大作中提到】 : 我完全不懂compile, 所以大牛们不要笑话。 : 现在我有个用C写的程序http://casegroup.rutgers.edu/casegr-sh-2.5.html,可以在unix : 底下跑。现在想在windows里跑(没法装cygwin),有什么办法? : 谢谢。
|
H**o 发帖数: 9 | 3 可能我的表达不太到位,不过我想要的就是"port a unix C program to windows"。
我就是想可不可以在WINDOWS下编译code让后run
谢谢
【在 e****d 的大作中提到】 : Connect to a remote unix server from windows and run your C program? : This is nothing related to compilation unless you want to port a unix C : program : to windows.
|
p***o 发帖数: 1252 | 4 Surely you can. But even porting to cygwin will take time.
If you have no clue on how to port, why wasting your time
instead of paying someone or get a collaborator?
【在 H**o 的大作中提到】 : 可能我的表达不太到位,不过我想要的就是"port a unix C program to windows"。 : 我就是想可不可以在WINDOWS下编译code让后run : 谢谢
|
H**o 发帖数: 9 | 5 因为以后可能还有类似的事,总不能每次都麻烦别人吧。
能给指条路吗?
【在 p***o 的大作中提到】 : Surely you can. But even porting to cygwin will take time. : If you have no clue on how to port, why wasting your time : instead of paying someone or get a collaborator?
|
e****d 发帖数: 895 | 6 In order to do this, you need to learn how to do C programming in win32.
【在 H**o 的大作中提到】 : 因为以后可能还有类似的事,总不能每次都麻烦别人吧。 : 能给指条路吗?
|
S**I 发帖数: 15689 | 7 装个Linux的虚拟机?
【在 H**o 的大作中提到】 : 因为以后可能还有类似的事,总不能每次都麻烦别人吧。 : 能给指条路吗?
|
p***o 发帖数: 1252 | 8 1 Install mingw/gcc/msys
2 Extract the source file
3 Read README, INSTALL or whatever document on how to build
4 Try to build it
Most likely you can finish the first 3 steps in 30mins and the fourth step
fails. Then you need to figure out why it fails: lack of tools, e.g. yacc;
incompatible build script; or the worst, system calls not available on
windows. It requires you to know programming on both platforms well before
you can get thing right.
Anyway, I won't do it unless paid directly or indirectly if the fourth
step just fails.
【在 H**o 的大作中提到】 : 因为以后可能还有类似的事,总不能每次都麻烦别人吧。 : 能给指条路吗?
|
H**o 发帖数: 9 | 9 Thanks a lot.
【在 p***o 的大作中提到】 : 1 Install mingw/gcc/msys : 2 Extract the source file : 3 Read README, INSTALL or whatever document on how to build : 4 Try to build it : Most likely you can finish the first 3 steps in 30mins and the fourth step : fails. Then you need to figure out why it fails: lack of tools, e.g. yacc; : incompatible build script; or the worst, system calls not available on : windows. It requires you to know programming on both platforms well before : you can get thing right. : Anyway, I won't do it unless paid directly or indirectly if the fourth
|
H**o 发帖数: 9 | 10 没权限装。我也这么想过
【在 S**I 的大作中提到】 : 装个Linux的虚拟机?
|
a****l 发帖数: 8211 | 11 For the application you are looking at, very probably you can simply dump
all the code into a visual studio project and compile and run (assuming the
author provides all the libraries in that zip file)
This seems to be a simply application that probably does not involve any
special unix operation, so it's highly likely you can get it ported to
windows with minimal effort.
【在 H**o 的大作中提到】 : 我完全不懂compile, 所以大牛们不要笑话。 : 现在我有个用C写的程序http://casegroup.rutgers.edu/casegr-sh-2.5.html,可以在unix : 底下跑。现在想在windows里跑(没法装cygwin),有什么办法? : 谢谢。
|
b******n 发帖数: 592 | 12 have your library for platform dependent stuffs. If it is command line
program,
it is not difficult to have a cross-platform version.
your library will be useful for all your applications in the future,
definitely
worth the effort
【在 H**o 的大作中提到】 : 因为以后可能还有类似的事,总不能每次都麻烦别人吧。 : 能给指条路吗?
|