|

楼主 |
发表于 2007-7-29 13:57:40
|
显示全部楼层
编译src/ime.c在Dec C++ 4.9.9.2 中报错
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\project\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\project\Makefile.win" src/ime.o
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:28:
src/xim.h:47: error: `CARD16' does not name a type
src/xim.h:52: error: `Bool' does not name a type
src/xim.h:56: error: `Bool' does not name a type
src/xim.h:57: error: variable or field `SendHZtoClient' declared void
src/xim.h:57: error: `IMForwardEventStruct' was not declared in this scope
src/xim.h:57: error: `call_data' was not declared in this scope
src/xim.h:57: error: expected primary-expression before "char"
src/xim.h:57: error: initializer expression list treated as compound expression
src/xim.h:58: error: variable or field `EnterChineseMode' declared void
src/xim.h:58: error: `Bool' was not declared in this scope
src/xim.h:59: error: variable or field `CreateConnectID' declared void
src/xim.h:59: error: `IMOpenStruct' was not declared in this scope
src/xim.h:59: error: `call_data' was not declared in this scope
src/xim.h:60: error: variable or field `DestroyConnectID' declared void
src/xim.h:60: error: `CARD16' was not declared in this scope
src/xim.h:61: error: variable or field `SetConnectID' declared void
src/xim.h:61: error: `CARD16' was not declared in this scope
src/xim.h:61: error: expected primary-expression before "imState"
src/xim.h:61: error: initializer expression list treated as compound expression
src/xim.h:62: error: `CARD16' was not declared in this scope
src/xim.h:68: error: variable or field `ConnectIDSetTrackCursor' declared void
src/xim.h:68: error: `CARD16' was not declared in this scope
src/xim.h:68: error: `Bool' was not declared in this scope
src/xim.h:68: error: initializer expression list treated as compound expression
src/xim.h:69: error: `Bool' does not name a type
src/xim.h:70: error: variable or field `SetIMState' declared void
src/xim.h:70: error: `Bool' was not declared in this scope
In file included from src/ime.c:29:
src/ime.h:23:24: X11/keysym.h: No such file or directory
In file included from src/ime.h:25,
from src/ime.c:29:
src/KeyList.h:24:22: X11/Xlib.h: No such file or directory
src/KeyList.h:27:20: IMdkit.h: No such file or directory
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:30:
src/InputWindow.h:53: error: `Bool' does not name a type
In file included from src/ime.c:31:
src/MainWindow.h:40: error: `Bool' does not name a type
In file included from src/ime.c:32:
src/IC.h:36:19: Xi18n.h: No such file or directory
In file included from src/ime.c:32:
src/IC.h:41: error: `XRectangle' does not name a type
src/IC.h:42: error: `XRectangle' does not name a type
src/IC.h:43: error: `XPoint' does not name a type
src/IC.h:44: error: `Colormap' does not name a type
src/IC.h:45: error: `CARD32' does not name a type
src/IC.h:46: error: `CARD32' does not name a type
src/IC.h:47: error: `Pixmap' does not name a type
src/IC.h:49: error: `CARD32' does not name a type
src/IC.h:50: error: `Cursor' does not name a type
src/IC.h:54: error: `XRectangle' does not name a type
src/IC.h:55: error: `XRectangle' does not name a type
src/IC.h:56: error: `Colormap' does not name a type
src/IC.h:57: error: `CARD32' does not name a type
src/IC.h:58: error: `CARD32' does not name a type
src/IC.h:59: error: `Pixmap' does not name a type
src/IC.h:61: error: `CARD32' does not name a type
src/IC.h:62: error: `Cursor' does not name a type
src/IC.h:66: error: `CARD16' does not name a type
src/IC.h:67: error: `INT32' does not name a type
src/IC.h:68: error: `Window' does not name a type
src/IC.h:69: error: `Window' does not name a type
src/IC.h:77: warning: `FindIC' initialized and declared `extern'
src/IC.h:77: error: `CARD16' was not declared in this scope
src/IC.h:78: warning: `CreateIC' initialized and declared `extern'
src/IC.h:78: error: variable or field `CreateIC' declared void
src/IC.h:78: error: `IMChangeICStruct' was not declared in this scope
src/IC.h:78: error: expected primary-expression before ')' token
src/IC.h:79: warning: `DestroyIC' initialized and declared `extern'
src/IC.h:79: error: variable or field `DestroyIC' declared void
src/IC.h:79: error: `IMChangeICStruct' was not declared in this scope
src/IC.h:79: error: expected primary-expression before ')' token
src/IC.h:80: warning: `SetIC' initialized and declared `extern'
src/IC.h:80: error: variable or field `SetIC' declared void
src/IC.h:80: error: `IMChangeICStruct' was not declared in this scope
src/IC.h:80: error: expected primary-expression before ')' token
src/IC.h:81: warning: `GetIC' initialized and declared `extern'
src/IC.h:81: error: variable or field `GetIC' declared void
src/IC.h:81: error: `IMChangeICStruct' was not declared in this scope
src/IC.h:81: error: expected primary-expression before ')' token
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: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
In file included from src/ime.c:39:
src/ui.h:41: error: `GC' does not name a type
src/ui.h:42: error: `GC' does not name a type
src/ui.h:43: error: `XColor' does not name a type
src/ui.h:44: error: `XColor' does not name a type
src/ui.h:48: error: `GC' does not name a type
src/ui.h:49: error: `XColor' does not name a type
src/ui.h:57: error: `Bool' does not name a type
src/ui.h:58: error: variable or field `Draw3DEffect' declared void
src/ui.h:58: error: `Window' was not declared in this scope
src/ui.h:58: error: expected primary-expression before "int"
src/ui.h:58: error: expected primary-expression before "int"
src/ui.h:58: error: expected primary-expression before "int"
src/ui.h:58: error: expected primary-expression before "int"
src/ui.h:58: error: expected primary-expression before "effect"
src/ui.h:58: error: initializer expression list treated as compound expression
src/ui.h:59: error: variable or field `InitGC' declared void
src/ui.h:59: error: `Window' was not declared in this scope
src/ui.h:61: error: variable or field `MyXEventHandler' declared void
src/ui.h:61: error: `XEvent' was not declared in this scope
src/ui.h:61: error: `event' was not declared in this scope
src/ui.h:62: error: `Bool' does not name a type
src/ui.h:71: error: variable or field `OutputString' declared void
src/ui.h:71: error: `Window' was not declared in this scope
src/ui.h:71: error: `XFontSet' was not declared in this scope
src/ui.h:71: error: expected primary-expression before "char"
src/ui.h:71: error: expected primary-expression before "int"
src/ui.h:71: error: expected primary-expression before "int"
src/ui.h:71: error: `GC' was not declared in this scope
src/ui.h:71: error: initializer expression list treated as compound expression
src/ui.h:72: error: `XFontSet' has not been declared
src/ui.h:72: error: ISO C++ forbids declaration of `font' with no type
src/ui.h:73: error: `XFontSet' was not declared in this scope
src/ui.h:77: error: `Bool' does not name a type
In file included from src/ime.c:40:
src/vk.h:38: error: `Bool' does not name a type
src/vk.h:48: 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:137: error: expected init-declarator before '*' token
src/ime.c:137: error: expected `,' or `;' before '*' token
src/ime.c:141: error: `uint' 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: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: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:806: error: `bCorner' 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: In function `INPUT_RETURN_VALUE ChangeGBK()':
src/ime.c:825: error: `bUseGBK' 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: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: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 |
|