|

楼主 |
发表于 2007-7-29 20:28:25
|
显示全部楼层
剪切到以ime.c为中心的一系列c文件,还有如下错误:
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\project\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\project\Makefile.win" all
g++.exe -c src/ime.c -o src/ime.o -I"C:/Dev-Cpp/include/c++" -I"C:/Dev-Cpp/include"
In file included from src/ime.c:29:
src/ime.h:95: error: ISO C++ forbids declaration of `Bool' with no type
src/ime.h:95: error: expected `;' before '(' token
src/ime.h:102: error: variable or field `ProcessKey' declared void
src/ime.h:102: error: `IMForwardEventStruct' was not declared in this scope
src/ime.h:102: error: `call_data' was not declared in this scope
src/ime.h:104: error: variable or field `CloseIM' declared void
src/ime.h:104: error: `IMForwardEventStruct' was not declared in this scope
src/ime.h:104: error: `call_data' was not declared in this scope
src/ime.h:105: error: variable or field `ChangeIMState' declared void
src/ime.h:105: error: `CARD16' was not declared in this scope
src/ime.h:106: error: `Bool' does not name a type
src/ime.h:115: error: `Bool' has not been declared
src/ime.h:115: error: ISO C++ forbids declaration of `PhraseTips' with no type
src/ime.h:116: error: variable or field `SwitchIM' declared void
src/ime.h:116: error: `INT8' was not declared in this scope
src/ime.h:118: error: `Bool' does not name a type
In file included from src/ime.c:33:
src/punc.h:36: error: `Bool' does not name a type
In file included from src/ime.c:34:
src/py.h:61: error: `uint' does not name a type
src/py.h:62: error: `uint' does not name a type
src/py.h:64: error: `uint' does not name a type
src/py.h:70: error: `uint' does not name a type
src/py.h:71: error: `Bool' does not name a type
src/py.h:79: error: `uint' does not name a type
src/py.h:80: error: `uint' does not name a type
src/py.h:81: error: `uint' does not name a type
src/py.h:90: error: `uint' does not name a type
src/py.h:91: error: `uint' does not name a type
src/py.h:92: error: `uint' does not name a type
src/py.h:139: error: `uint' does not name a type
src/py.h:155: error: `Bool' does not name a type
src/py.h:156: error: `Bool' does not name a type
src/py.h:171: error: `Bool' does not name a type
src/py.h:173: error: `Bool' does not name a type
src/py.h:175: error: `Bool' does not name a type
src/py.h:177: error: `Bool' does not name a type
src/py.h:180: error: `Bool' does not name a type
src/py.h:181: error: `Bool' has not been declared
src/py.h:181: error: ISO C++ forbids declaration of `flag' with no type
src/py.h:182: error: variable or field `PYSetCandWordsFlag' declared void
src/py.h:182: error: `Bool' was not declared in this scope
src/py.h:183: error: `Bool' does not name a type
src/py.h:192: error: `Bool' does not name a type
src/py.h:195: error: `Bool' does not name a type
src/py.h:197: error: variable or field `PYSetLegendCandWordsFlag' declared void
src/py.h:197: error: `Bool' was not declared in this scope
In file included from src/ime.c:37:
src/table.h:23:22: X11/Xlib.h: No such file or directory
In file included from src/ime.c:37:
src/table.h:62: error: `INT8' does not name a type
src/table.h:66: error: `Bool' does not name a type
src/table.h:67: error: `Bool' does not name a type
src/table.h:68: error: `Bool' does not name a type
src/table.h:69: error: `Bool' does not name a type
src/table.h:70: error: `INT8' does not name a type
src/table.h:71: error: `Bool' does not name a type
src/table.h:72: error: `INT8' does not name a type
src/table.h:73: error: `Bool' does not name a type
src/table.h:74: error: `Bool' does not name a type
src/table.h:100: error: `INT8' does not name a type
src/table.h:123: error: `Bool' does not name a type
src/table.h:127: error: `Bool' does not name a type
src/table.h:128: error: `Bool' does not name a type
src/table.h:132: error: variable or field `TableAddAutoCandWord' declared void
src/table.h:132: error: `INT16' was not declared in this scope
src/table.h:132: error: expected primary-expression before "mode"
src/table.h:132: error: initializer expression list treated as compound expression
src/table.h:140: error: `Bool' does not name a type
src/table.h:153: error: `Bool' does not name a type
src/table.h:154: error: `Bool' has not been declared
src/table.h:154: error: ISO C++ forbids declaration of `flag' with no type
src/table.h:157: error: variable or field `TableCreateAutoPhrase' declared void
src/table.h:157: error: `INT8' was not declared in this scope
In file included from src/ime.c:38:
src/tools.h:28: error: variable or field `LoadConfig' declared void
src/tools.h:28: error: `Bool' was not declared in this scope
src/tools.h:36: error: `Bool' does not name a type
src/tools.h:37: error: `Bool' does not name a type
src/ime.c:44: error: `INT8' does not name a type
src/ime.c:65: error: `Bool' does not name a type
src/ime.c:66: error: `Bool' does not name a type
src/ime.c:67: error: `Bool' does not name a type
src/ime.c:68: error: `Bool' does not name a type
src/ime.c:69: error: `Bool' does not name a type
src/ime.c:70: error: `INT8' does not name a type
src/ime.c:71: error: `Bool' does not name a type
src/ime.c:72: error: `Bool' does not name a type
src/ime.c:73: error: `Bool' does not name a type
src/ime.c:74: error: `INT8' does not name a type
src/ime.c:75: error: `Bool' does not name a type
src/ime.c:78: error: `Bool' does not name a type
src/ime.c:79: error: `Bool' does not name a type
src/ime.c:80: error: `Bool' does not name a type
src/ime.c:82: error: `Bool' does not name a type
src/ime.c:87: error: `Time' does not name a type
src/ime.c:91: error: `Bool' does not name a type
src/ime.c:105: error: `Bool' does not name a type
src/ime.c:106: error: `Bool' does not name a type
src/ime.c:108: error: `INT8' does not name a type
src/ime.c:109: error: `Bool' does not name a type
src/ime.c:110: error: `Bool' does not name a type
src/ime.c:111: error: `Bool' does not name a type
src/ime.c:112: error: `Bool' does not name a type
src/ime.c:117: error: `Bool' does not name a type
src/ime.c:121: error: `Bool' does not name a type
src/ime.c:122: error: `Bool' does not name a type
src/ime.c:123: error: `Bool' does not name a type
src/ime.c:124: error: `uint' does not name a type
src/ime.c:135: error: `XIMS' does not name a type
src/ime.c:136: error: expected init-declarator before '*' token
src/ime.c:136: error: expected `,' or `;' before '*' token
src/ime.c:137: error: expected init-declarator before '*' token
src/ime.c:137: error: expected `,' or `;' before '*' token
src/ime.c:140: error: `MESSAGE' does not name a type
src/ime.c:141: error: `uint' does not name a type
src/ime.c:142: error: `MESSAGE' does not name a type
src/ime.c:143: error: `uint' does not name a type
src/ime.c:144: error: `Bool' does not name a type
src/ime.c:145: error: `Bool' does not name a type
src/ime.c:146: error: `Bool' does not name a type
src/ime.c:147: error: `Bool' does not name a type
src/ime.c:150: error: `Window' does not name a type
src/ime.c:151: error: `HIDE_MAINWINDOW' does not name a type
src/ime.c:152: error: expected init-declarator before '*' token
src/ime.c:152: error: expected `,' or `;' before '*' token
src/ime.c:153: error: `Window' does not name a type
src/ime.c:156: error: `Window' does not name a type
src/ime.c:157: error: `VKS' does not name a type
src/ime.c:159: error: `Bool' does not name a type
src/ime.c:162: error: `Bool' does not name a type
src/ime.c:163: error: `Bool' does not name a type
src/ime.c:164: error: `Bool' does not name a type
src/ime.c:166: error: `INT8' does not name a type
src/ime.c:167: error: `INT8' does not name a type
src/ime.c:168: error: `INT8' does not name a type
src/ime.c:169: error: `INT8' does not name a type
src/ime.c:170: error: `INT16' does not name a type
src/ime.c:173: error: `INT8' does not name a type
src/ime.c:175: error: `Bool' does not name a type
src/ime.c:185: error: `XFontSet' does not name a type
src/ime.c: In function `void ResetInput()':
src/ime.c:203: error: `bIsDoInputOnly' undeclared (first use this function)
src/ime.c:203: error: (Each undeclared identifier is reported only once for each function it appears in.)
src/ime.c:203: error: `False' undeclared (first use this function)
src/ime.c:205: error: `bShowPrev' undeclared (first use this function)
src/ime.c:206: error: `bShowNext' undeclared (first use this function)
src/ime.c:208: error: `bIsInLegend' undeclared (first use this function)
src/ime.c:209: error: `iInCap' undeclared (first use this function)
src/ime.c:211: error: `IsIM' undeclared (first use this function)
src/ime.c:212: error: `bShowCursor' undeclared (first use this function)
src/ime.c:214: error: `iIMIndex' undeclared (first use this function)
src/ime.c: At global scope:
src/ime.c:218: error: variable or field `CloseIM' declared void
src/ime.c:218: error: redefinition of `int CloseIM'
src/ime.h:104: error: `int CloseIM' previously defined here
src/ime.c:218: error: `IMForwardEventStruct' was not declared in this scope
src/ime.c:218: error: `call_data' was not declared in this scope
src/ime.c:219: error: expected `,' or `;' before '{' token
src/ime.c:229: error: variable or field `ChangeIMState' declared void
src/ime.c:229: error: redefinition of `int ChangeIMState'
src/ime.h:105: error: `int ChangeIMState' previously defined here
src/ime.c:229: error: `CARD16' was not declared in this scope
src/ime.c:230: error: expected `,' or `;' before '{' token
src/ime.c: In function `void ConvertPunc()':
src/ime.c:269: error: `strcat' undeclared (first use this function)
src/ime.c:270: error: `strlen' undeclared (first use this function)
src/ime.c:278: error: `strcpy' undeclared (first use this function)
src/ime.c: At global scope:
src/ime.c:282: error: variable or field `ProcessKey' declared void
src/ime.c:282: error: redefinition of `int ProcessKey'
src/ime.h:102: error: `int ProcessKey' previously defined here
src/ime.c:282: error: `IMForwardEventStruct' was not declared in this scope
src/ime.c:282: error: `call_data' was not declared in this scope
src/ime.c:283: error: expected `,' or `;' before '{' token
src/ime.c:794: error: `Bool' does not name a type
src/ime.c: In function `INPUT_RETURN_VALUE ChangeCorner()':
src/ime.c:804: error: `ResetInputWindow' undeclared (first use this function)
src/ime.c:806: error: `bCorner' undeclared (first use this function)
src/ime.c:807: error: `DisplayMainWindow' undeclared (first use this function)
src/ime.c: In function `INPUT_RETURN_VALUE ChangePunc()':
src/ime.c:816: error: `bChnPunc' undeclared (first use this function)
src/ime.c:817: error: `DisplayMainWindow' undeclared (first use this function)
src/ime.c: In function `INPUT_RETURN_VALUE ChangeGBK()':
src/ime.c:825: error: `bUseGBK' undeclared (first use this function)
src/ime.c:827: error: `ResetInputWindow' undeclared (first use this function)
src/ime.c:829: error: `DisplayMainWindow' undeclared (first use this function)
src/ime.c:830: error: `dpy' undeclared (first use this function)
src/ime.c:830: error: `inputWindow' undeclared (first use this function)
src/ime.c:830: error: `XUnmapWindow' undeclared (first use this function)
src/ime.c: In function `INPUT_RETURN_VALUE ChangeGBKT()':
src/ime.c:839: error: `bUseGBKT' undeclared (first use this function)
src/ime.c:841: error: `ResetInputWindow' undeclared (first use this function)
src/ime.c:843: error: `DisplayMainWindow' undeclared (first use this function)
src/ime.c:844: error: `dpy' undeclared (first use this function)
src/ime.c:844: error: `inputWindow' undeclared (first use this function)
src/ime.c:844: error: `XUnmapWindow' undeclared (first use this function)
src/ime.c: In function `INPUT_RETURN_VALUE ChangeLegend()':
src/ime.c:853: error: `bUseLegend' undeclared (first use this function)
src/ime.c:855: error: `ResetInputWindow' undeclared (first use this function)
src/ime.c:857: error: `DisplayMainWindow' undeclared (first use this function)
src/ime.c:858: error: `dpy' undeclared (first use this function)
src/ime.c:858: error: `inputWindow' undeclared (first use this function)
src/ime.c:858: error: `XUnmapWindow' undeclared (first use this function)
src/ime.c: In function `INPUT_RETURN_VALUE ChangeTrack()':
src/ime.c:867: error: `bTrackCursor' undeclared (first use this function)
src/ime.c: At global scope:
src/ime.c:873: error: variable or field `SwitchIM' declared void
src/ime.c:873: error: redefinition of `int SwitchIM'
src/ime.h:116: error: `int SwitchIM' previously defined here
src/ime.c:873: error: `INT8' was not declared in this scope
src/ime.c:874: error: expected `,' or `;' before '{' token
src/ime.c: In function `void DoPhraseTips()':
src/ime.c:922: error: `bPhraseTips' undeclared (first use this function)
src/ime.c:925: error: `iIMIndex' undeclared (first use this function)
src/ime.c:926: error: `lastIsSingleHZ' undeclared (first use this function)
src/ime.c: At global scope:
src/ime.c:935: error: `Bool' has not been declared
src/ime.c:936: error: ISO C++ forbids declaration of `PhraseTips' with no type
src/ime.c: In function `void RegisterNewIM(char*, void (*)(), INPUT_RETURN_VALUE (*)(int), INPUT_RETURN_VALUE (*)(SEARCH_MODE), char*(*)(int), char*(*)(int), int (*)(), void (*)(), void (*)())':
src/ime.c:940: error: `iIMCount' undeclared (first use this function)
src/ime.c:940: error: `strcpy' undeclared (first use this function)
src/ime.c: At global scope:
src/ime.c:953: error: `Bool' does not name a type
src/ime.c: In function `void SaveIM()':
src/ime.c:963: error: `iTableChanged' undeclared (first use this function)
src/ime.c:963: error: `iTableOrderChanged' undeclared (first use this function)
src/ime.c:965: error: `iNewPYPhraseCount' undeclared (first use this function)
src/ime.c:967: error: `iOrderCount' undeclared (first use this function)
src/ime.c:969: error: `iNewFreqCount' undeclared (first use this function)
src/ime.c: In function `void SetIM()':
src/ime.c:975: error: `INT8' undeclared (first use this function)
src/ime.c:975: error: expected `;' before "i"
src/ime.c:978: error: `free' undeclared (first use this function)
src/ime.c:980: error: `bUseTable' undeclared (first use this function)
src/ime.c:983: error: `iIMCount' undeclared (first use this function)
src/ime.c:983: error: `iTableCount' undeclared (first use this function)
src/ime.c:984: error: `bUsePinyin' undeclared (first use this function)
src/ime.c:986: error: `bUseSP' undeclared (first use this function)
src/ime.c:988: error: `bUseQW' undeclared (first use this function)
src/ime.c:991: error: `malloc' undeclared (first use this function)
src/ime.c:1002: error: `i' undeclared (first use this function)
src/ime.c:1003: error: `TablePhraseTips' undeclared (first use this function)
src/ime.c:1008: error: `iIMIndex' undeclared (first use this function)
src/ime.c:1008: error: `SwitchIM' cannot be used as a function
make.exe: *** [src/ime.o] Error 1
Execution terminated |
|