由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Programming版 - 外行问个compile的事, 大牛们帮帮我
相关主题
intel released c++ compiler 2013please recommend an easy windows C debugger for a beginner
10个包子 求救 新手 问个borland c++ 5.5的问题。。windows 7 下面大家都用什么C编程软件?
c++标准函数传递一问develop linux apps on Windows
死了,哪里有mingw的入门介绍?MinGW在win7上就是一个垃圾
g++ for Windowserror of couting total line number in txt file on MSDOS (转载)
怎样在cygwin里安装老的gcc版本?free C++ compiler under Vista?
问一个很弱的c++ cin的问题DJGPP下怎样用pthread.h?
makefile 里面那个-D flags的问题如何 initialize array member?
相关话题的讨论汇总
话题: windows话题: compile话题: unix话题: your话题: fails
进入Programming版参与讨论
1 (共1页)
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 的大作中提到】
: 因为以后可能还有类似的事,总不能每次都麻烦别人吧。
: 能给指条路吗?

1 (共1页)
进入Programming版参与讨论
相关主题
如何 initialize array member?g++ for Windows
不同compiler速度可以差很远吗?怎样在cygwin里安装老的gcc版本?
Qt Creator问一个很弱的c++ cin的问题
Eclipse JNI问题, 拜谢makefile 里面那个-D flags的问题
intel released c++ compiler 2013please recommend an easy windows C debugger for a beginner
10个包子 求救 新手 问个borland c++ 5.5的问题。。windows 7 下面大家都用什么C编程软件?
c++标准函数传递一问develop linux apps on Windows
死了,哪里有mingw的入门介绍?MinGW在win7上就是一个垃圾
相关话题的讨论汇总
话题: windows话题: compile话题: unix话题: your话题: fails