C ++核心库的编译错误

时间:2011-10-07 19:59:11

标签: c++ compilation

在编译软件期间,我一直收到以下错误消息。

PasteBin链接:http://pastebin.com/TmHKqey2

我在论坛上尝试过讨论类似问题的解决方案:将所有makefile从makefile。*更改为Makefile。*;更新标题等 - 但没有成功。

有任何建议/见解吗?

谢谢!

$ make
colorgcc -O -DLONGDOUBLE   -I ../include -c AddNode.c
colorgcc -O -DLONGDOUBLE   -I ../include -c CTableGen.c
colorgcc -O -DLONGDOUBLE   -I ../include -c CorrectionTable.c
CorrectionTable.c: In function ‘CorrectionTableInit’:
CorrectionTable.c:590: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
CorrectionTable.c:623: warning: ignoring return value of ‘fscanf’, declared with attribute warn_unused_result
colorgcc -O -DLONGDOUBLE   -I ../include -c Decomp.c
colorgcc -O -DLONGDOUBLE   -I ../include -c DLBfreeOld.c
colorgcc -O -DLONGDOUBLE   -I ../include -c FMComm.c
colorgcc -O -DLONGDOUBLE   -I ../include -c FMSigma2.c
colorgcc -O -DLONGDOUBLE   -I ../include -c FMSupport.c
colorgcc -O -DLONGDOUBLE   -I ../include -c FreeInitArrays.c
colorgcc -O -DLONGDOUBLE   -I ../include -c GetNewNativeNode.c
colorgcc -O -DLONGDOUBLE   -I ../include -c Heap.c
colorgcc -O -DLONGDOUBLE   -I ../include -c InitCellDomains.c
colorgcc -O -DLONGDOUBLE   -I ../include -c InitCellNatives.c
colorgcc -O -DLONGDOUBLE   -I ../include -c InitCellNeighbors.c
colorgcc -O -DLONGDOUBLE   -I ../include -c InitSendDomains.c
colorgcc -O -DLONGDOUBLE   -I ../include -c InitRemoteDomains.c
colorgcc -O -DLONGDOUBLE   -I ../include -c MemCheck.c
colorgcc -O -DLONGDOUBLE   -I ../include -c Meminfo.c
colorgcc -O -DLONGDOUBLE   -I ../include -c Param.c
colorgcc -O -DLONGDOUBLE   -I ../include -c Parse.c
colorgcc -O -DLONGDOUBLE   -I ../include -c QueueOps.c
colorgcc -O -DLONGDOUBLE   -I ../include -c RBDecomp.c
colorgcc -O -DLONGDOUBLE   -I ../include -c RSDecomp.c
colorgcc -O -DLONGDOUBLE   -I ../include -c ReadRestart.c
colorgcc -O -DLONGDOUBLE   -I ../include -c Timer.c
colorgcc -O -DLONGDOUBLE   -I ../include -c Util.c
In file included from /usr/include/stdio.h:34,
                 from Util.c:119:
/usr/lib/gcc/i486-linux-gnu/4.4.3/include/stddef.h:211: error: expected identifier or ‘(’ before ‘typedef’
In file included from /usr/include/stdio.h:75,
                 from Util.c:119:
/usr/include/libio.h:332: error: expected specifier-qualifier-list before ‘size_t’
/usr/include/libio.h:364: error: expected declaration specifiers or ‘...’ before ‘size_t’
/usr/include/libio.h:373: error: expected declaration specifiers or ‘...’ before ‘size_t’

[更新:添加了make输出的初始部分]

1 个答案:

答案 0 :(得分:1)

如果我在包含文件之前有错误,我通常会得到这个。所以我会在包含stdio.h之前查看Util.c,看看是否存在语法错误。错误可能包含在stdio.h之前包含的内容。

最常见的原因,缺少';'或'}'。