2011-10-07 91 views
0

編譯軟件期間,我始終收到以下錯誤消息。使用C++核心庫編譯錯誤

引擎收錄鏈接: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’ 

[更新時間:化妝輸出的增加初始部分]

回答

1

我通常會這樣,如果我所包含的文件之前有一個錯誤。所以我會在包含stdio.h之前查看Util.c,看看是否有一些語法錯誤。這個錯誤可能出現在stdio.h之前的某些include中。

最常見原因,缺少';'要麼 '}'。