We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
可移植 C 程序可以在许多不同的自由编译器和非自由编译器中编写。
为了兼容性,在 Linux 机器上使用 gcc 不会出错。如果它不适用于 GCC,那么您可能遇到了问题。
在Windows中,Microsoft C编译器通常被认为是可以接受的,但是如果您使用MS Visual Studio(大多数学校都有安装)那么您需要非常小心以确保您正在编译为ANSI-C,而不是更高版本的C甚至 C++。当我过去教书时,学生们常常会错过这个选项,从而导致自动化测试出现问题。以下是关于如何使用 Visual Studio 2005 执行此操作的一些说明,您可以在稍后找到类似的功能版本。
Portable C programs can be written in many different free compilers and non-free compilers.
For compatibility, you can't go wrong with gcc on Linux machines. If it doesn't work with GCC, you probably have a problem.
In Windows, the Microsoft C compiler is generally considered acceptable, but if you use MS Visual Studio (most schools have an installation) then you need to be very careful to ensure that you are compiling as ANSI-C, rather than later versions of C or even C++. When I used to teach, students used to miss that option, leading to problems with automated tests. Here are some instructions on how to do this with Visual Studio 2005, you can find similar features in later versions.
我意识到这个问题有一个答案,但对于任何正在寻找 Turbo C 替代方案来构建 16 位 DOS 应用程序的人来说,我只想指出 OpenWatcom 是一个很好的选择。我一直在 Windows 7 下使用它构建 16 位 DOS 应用程序,并在运行 DOS 6.22 的嵌入式目标上取得了巨大成功。
I realize this question has an answer, but for anyone searching SO for an alternative to Turbo C for building 16-bit DOS apps, I just want to point out that OpenWatcom has been an excellent alternative. I've been using it under Windows 7 to build 16-bit DOS apps with great success for an embedded target running DOS 6.22.
有一个项目支持 Linux 中现代编译器 (GCC) 上的 Turbo C API。
请参阅:http://www.sandroid.org/TurboC/
There is a project to support the Turbo C API on modern compilers (GCC) in Linux.
See: http://www.sandroid.org/TurboC/