c++核心库的编译错误

Compilation Error with C++ core libraries

本文关键字:编译 错误 核心 c++      更新时间:2023-10-16

在软件编译过程中,我一直收到以下错误信息:

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输出的初始部分]

如果在包含的文件之前有错误,我通常会得到这个。因此,我会在包含stdio.h之前查看Util.c,看看是否有一些语法错误。错误可能是在您在stdio.h之前包含的某些包含中。

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