linux makefile 等效吗?重要的
我是一名计算机科学学生,但我不能,请不要问我为什么;我无法使用 make 和 linux 来完成 cs 作业。 Windows 7 或 Windows 中是否有与 linux 中的 make 类似的东西?我想在 Windows 而不是 Linux 上做作业。最接近的东西是什么?我有 Eclipse,但我不想要更简单的东西,我仍然可以在 C++ 中使用简单的命令和链接文件。请帮我。谢谢(考虑我是一个菜鸟)。
I am a CS student but I CANNOT and please don't ask me why; I cannot use make and linux for my cs assignments. Is there anything in Windows 7 or Windows in general that is similar to make in linux? I want to do my assignments in windows instead of linux. What is the closest thing to make? I have eclipse but I wan't something simpler that I can still use simple commands and linking files in C++. Please help me. THanks (consider I'm a noob).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
您可以轻松获得适用于 Windows 的免费(在成本和自由方面)
make
,以及 CygWin 和 GnuWin32 提供它们。事实上,我似乎记得微软编译器也有自己的make(凭记忆nmake
,但我可能是错的)。如果您无法使用任何
make
,那么下一个最好的办法就是使用cmd
文件来构建整个解决方案。但是,如果你这样做,你就会失去make
发挥作用的依赖性检查。You can easily get a free (as in cost and freedom)
make
for Windows, both CygWin and GnuWin32 provide them. In fact, I seem to recall that Microsoft compilers have their own make as well (nmake
from memory, but I could be wrong).If you can't use any
make
, then the next best thing is probabltcmd
files to build your entire solution. But, if you do that, you lose the dependency checking wheremake
shines.是你不会使用Linux,还是你既不会使用Linux,也不会使用make?有一个适用于 Windows 的 GNU Make 端口: http://gnuwin32.sourceforge.net/packages/make .htm
Microsoft SDK 具有 MSBuild 和
nmake
(有点像 Unix make)。对于稍微更奇特的工具,有 scons 和 cmake,但两者与 make 有很大不同。
Is it that you can't use Linux, or that you can't use either Linux or make? There is a port of GNU Make for Windows: http://gnuwin32.sourceforge.net/packages/make.htm
The Microsoft SDK has both MSBuild and
nmake
(which is kind of like Unix make).For slightly more exotic tools, there are scons and cmake, but both are pretty different from make.
您还可以使用 maven。虽然有一点学习曲线,但它已经开始受到关注。
You could also use maven. There's a bit of a learning curve, but it's starting to gain traction.
更不用说Ant(java)和nAnt(C#)了。它们都在 Windows 上运行。
此外,Perforce 的 Jam 非常适合 C/C++ 构建,因为它具有即时的依赖关系。 http://www.perforce.com/jam/jam.html
以及 X11/ X-Windows imake 也可以在 Win32 上运行。 http://www.snake.net/software/imake-stuff /imake-faq.html#TOC_4
很多选择。
坦率地说,我不认为 XML 对于这类东西有什么吸引力。对我来说,Makefile 一直显得非常明显(而且简单)。
not to mention Ant (java) and nAnt (C#). They both run on Windows.
Also, Perforce's Jam, quite good for C/C++ builds, due to its divining dependencies on the fly. http://www.perforce.com/jam/jam.html
And the X11/X-Windows imake runs on Win32 as well. http://www.snake.net/software/imake-stuff/imake-faq.html#TOC_4
Lots o'choices.
Frankly, I don't see the attraction of XML for this sort of stuff. Makefiles have always seemed pretty obvious (and simple) to me.