我有一个程序,在win95上工作,我没有在winXP上编译

时间:2011-12-10 11:28:14

标签: c compiler-construction header-files

我有一个程序,并在win95旧机器上工作。我想在win xp上工作,并希望在xp上执行这个程序。应用程序使用一些硬件(两个卡插入isa插槽)。我有应用程序soruce代码,但代码不支持xp。例如,graphics.h,eg_proto.h,color.h,wg_var.h头文件在现代编译器上没有任何地方。我有turbo c 1.0编译器但不支持我这种情况。

那么,我能对这种情况做些什么呢?你会建议一下吗?

源代码中的一些头文件:

#include <ctype.h>
#include <color.h>
#include <stdlib.h>
#include <errno.h>
#include <alloc.h>
#include <time.h>
#include <dir.h>
#include <process.h>  
#include <eg_proto.h>
#include <pchrt.h>
#include <stdio.h>
#include <stdlib.h>
#include <dos.h>
#include <math.h>
#include <string.h>
#include <dw.h>
#include <dwdata.h>
#include <wdh.h>

我对某些头文件一无所知。例如,dw.h,dwdata.h,wdh.h。我没有找到关于此头文件的任何描述。

编辑: 我的编译器是Turbo C 2.01

http://i.stack.imgur.com/LQFnI.jpg

1 个答案:

答案 0 :(得分:0)

如果您在两个系统上使用相同的编译器,则几乎可以肯定缺少的头不是编译器包的一部分。它们肯定不是操作系统的一部分,因为您的编译器早于两个操作系统。

我看到两种主要可能性:

  1. 这些标题是项目的一部分,由于构建过程中的错误而未找到。
  2. 这些标头是您在一个环境中安装的某些第三方库的一部分,而不是另一个。
  3. 无论哪种方式,您都需要找到它们并修复您的构建设置,或者将旧系统中的标题复制到新系统。