c - Borland C 5.5 编译器不工作

标签 c compiler-construction

我使用的是 Windows 7-64 位。 Borland C++ 5.5 不工作。

测试文件Hello.c

#include<stdio.h>

int main(void)
{  
   printf("Hello world!\n");
   return 0; 
}

Error E2209 Hello.c 1: Unable to open include file 'stdio.h'
Warning W8065 Hello.c 5: Call to function 'printf' with no prototype in function main
* 1 errors in Compile *

我已经用这些配置制作了 bcc32.cfg 和 ilink.cfg

bcc32.cfg

-I"c:\Borland\BCC55\include"  
-L"c:\Borland\BCC55\lib"  

ilink32.cfg

-L"c:\Borland\BCC55\lib"  

:困惑:

最佳答案

首先寻找你的include 和library 目录,看看它是否与你的borland C 目录选项中的相同

关于c - Borland C 5.5 编译器不工作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14028520/

相关文章:

计数并计算: from files; I;m kinda lost on how to get going (Noobie here)

c - 源代码中的什么导致了平台相关的结果

c++ - 什么是 "stack alignment"?

c - printf/sprintf 编译器警告是概念上的中断吗?

c - <命令行> :0:11: warning: extra tokens at end of#undef directive [enabled by default]

c - 即使参数计数正确,也无法运行的参数太少

assembly - JIT 跳转 (x86_64)

c# - 在 Windows 上编译 C# .net 3.5 控制台应用程序是否有任何免费、小型、快速的东西?

c - yylineno 在 yacc 文件中始终具有相同的值

javascript - 将 C 中请求的数据返回到 ajax(jquery) CGI