【发布时间】:2013-12-14 09:37:28
【问题描述】:
我知道这个问题被问了很多,但我不知道该怎么做,我不明白其他的回答。
我在 Linux 的 eclipse Kepler 中有这个 C 代码,它可以工作,现在在 Windows 8.1 上出现错误 "Unresolved inclusion: <stdio.h>"
我读到我必须在Properties -> C/C++ General -> Path and Simbols 中添加一些路径
但是 Windows 中的路径是什么?
附加信息:
当前工具链:跨 GCC
当前构建器:GNU Make Builder
使用过的工具:
Cross GCC Compiler
Cross G++ Compiler
Cross GCC Linker
Cross G++ Linker
Cross GCC Archiver
Cross GCC Assembler
这是代码的图像(http://goo.gl/rX0yxZ),这是代码:
/*
* main.c
*/
#include <stdio.h>
//#include<unistd.h>
//#include<string.h>
#include<crc.h>
int main() {
crcInit();
int i;
FILE *pFile = fopen("C:\Users\Itamar\Documents\REDES\hex", "r");
if (!pFile) {
printf("Error abriendo el archivo");
}
fseek(pFile, 0, SEEK_END);
int size = ftell(pFILE);
fseek(pFile, 0, SEEK_SET);
printf("%i\n", size);
unsigned int ITA[size];
for (i = 0; i < size; i++) {
char value;
fread(&value,1,1, pFILE);
ITA[i] = (unsigned int) value;
}
fclose(pFile);
printf("CRCFast of ITA is: %X",crcFast2());
}
我被这个问题弄糊涂了。
如果您需要更多信息,请告诉我。
提前致谢。
意大利
PD:对不起我的英语不好
【问题讨论】:
-
好吧,如果它在抱怨 stdio.h,您可能想尝试使用 Windows 文件资源管理器搜索它。当你找到它时,你就会知道它的路径。
-
天啊,我的电脑里没有 stdio.h,我忘了下载我猜想是 Eclipse 做的库。谢谢!