LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 4726|回复: 32

我想把fcitx移植到Windows平台下,所遇问题的帖子汇集,我想给fcitx添加一种先进的形声

[复制链接]
发表于 2007-7-28 20:12:22 | 显示全部楼层 |阅读模式
大家好.我想把fcitx移植到Windows平台下,利用Dec C++ 4.9.7.0有编译问题
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 TypeCab.dev -o TypeCab.o -I"C:/Dev-Cpp/include"  -I"C:/Dev-Cpp/include"  

g++.exe: TypeCab.dev: linker input file unused since linking not done

g++.exe -c lib/FrameMgr.c -o lib/FrameMgr.o -I"C:/Dev-Cpp/include"  -I"C:/Dev-Cpp/include"  

lib/FrameMgr.c:29: X11/Xlibint.h: No such file or directory
In file included from lib/FrameMgr.c:31:
lib/FrameMgr.h:32: X11/Xmd.h: No such file or directory

lib/FrameMgr.h:33: X11/Xlib.h: No such file or directory

make.exe: *** [lib/FrameMgr.o] Error 1

Execution terminated

大家对图形界面从linux到windows的移植有何见教,请联系我jerry.shen@cognizant.com
 楼主| 发表于 2007-7-28 22:33:38 | 显示全部楼层
在Dev 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" all
g++.exe -c src/about.c -o src/about.o -I"C:/Dev-Cpp/include/c++"  -I"C:/Dev-Cpp/include"   

In file included from src/about.c:21:
src/about.h:26:22: X11/Xlib.h: No such file or directory
In file included from src/about.c:21:
src/about.h:30: error: `Bool' does not name a type

In file included from src/about.c:22:
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/about.c:23:
src/xim.h:24:25: X11/Xlocale.h: No such file or directory
src/xim.h:26:23: X11/Xutil.h: No such file or directory
src/xim.h:27:24: X11/keysym.h: No such file or directory
src/xim.h:29:20: IMdkit.h: No such file or directory
src/xim.h:30:19: Xi18n.h: No such file or directory

In file included from src/about.c:23:
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

src/about.c:24:26: about_icon.xpm: No such file or directory
src/about.c:25:21: version.h: No such file or directory
src/about.c:33:19: iconv.h: No such file or directory
src/about.c:34:23: X11/Xatom.h: No such file or directory
src/about.c:35:21: X11/xpm.h: No such file or directory
src/about.c:37: error: expected init-declarator before '*' token
src/about.c:37: error: expected `,' or `;' before '*' token

src/about.c:45: error: `XFontSet' does not name a type
src/about.c:48: error: `Window' does not name a type
src/about.c:50: error: too many initializers for `WINDOW_COLOR'

src/about.c:52: error: too many initializers for `MESSAGE_COLOR'
src/about.c:55: error: `Atom' does not name a type
src/about.c:56: error: `Atom' does not name a type

src/about.c:66: error: `iconv_t' does not name a type
src/about.c:67: error: `Bool' does not name a type
src/about.c:69: error: `Bool' does not name a type

src/about.c: In function `void InitWindowProperty()':
src/about.c:104: error: `XTextProperty' undeclared (first use this function)
src/about.c:104: error: (Each undeclared identifier is reported only once for each function it appears in.)
src/about.c:104: error: expected `;' before "tp"
src/about.c:108: error: `Atom' undeclared (first use this function)
src/about.c:108: error: expected `;' before "about_wm_window_type"
src/about.c:109: error: expected `;' before "type_toolbar"
src/about.c:111: error: `dpy' undeclared (first use this function)
src/about.c:111: error: `aboutWindow' undeclared (first use this function)
src/about.c:111: error: `DefaultRootWindow' undeclared (first use this function)
src/about.c:111: error: `XSetTransientForHint' undeclared (first use this function)

src/about.c:113: error: `about_wm_window_type' undeclared (first use this function)
src/about.c:113: error: `XA_ATOM' undeclared (first use this function)
src/about.c:113: error: `PropModeReplace' undeclared (first use this function)
src/about.c:113: error: `type_toolbar' undeclared (first use this function)
src/about.c:113: error: `XChangeProperty' undeclared (first use this function)
src/about.c:115: error: `about_protocol_atom' undeclared (first use this function)
src/about.c:115: error: `False' undeclared (first use this function)
src/about.c:115: error: `XInternAtom' undeclared (first use this function)

src/about.c:116: error: `about_kill_atom' undeclared (first use this function)

src/about.c:117: error: `XSetWMProtocols' undeclared (first use this function)

src/about.c:119: error: `bIsUtf8' undeclared (first use this function)
src/about.c:125: error: `strlen' undeclared (first use this function)
src/about.c:127: error: `convUTF8' undeclared (first use this function)
src/about.c:127: error: `iconv' undeclared (first use this function)
src/about.c:134: error: `tp' undeclared (first use this function)
src/about.c:135: error: `XA_STRING' undeclared (first use this function)
src/about.c:138: error: `XSetWMName' undeclared (first use this function)

src/about.c: In function `void InitAboutWindowColor()':
src/about.c:143: error: `XGCValues' undeclared (first use this function)
src/about.c:143: error: expected `;' before "values"

src/about.c:146: error: 'struct MESSAGE_COLOR' has no member named 'gc'
src/about.c:146: error: `dpy' undeclared (first use this function)
src/about.c:146: error: `aboutWindow' undeclared (first use this function)

src/about.c:146: error: `values' undeclared (first use this function)
src/about.c:146: error: `XCreateGC' undeclared (first use this function)
src/about.c:147: error: `DefaultScreen' undeclared (first use this function)
src/about.c:147: error: `DefaultColormap' undeclared (first use this function)
src/about.c:147: error: 'struct MESSAGE_COLOR' has no member named 'color'
src/about.c:147: error: `XAllocColor' undeclared (first use this function)
src/about.c:148: error: 'struct MESSAGE_COLOR' has no member named 'color'
src/about.c:150: error: `WhitePixel' undeclared (first use this function)
src/about.c:151: error: 'struct MESSAGE_COLOR' has no member named 'gc'
src/about.c:151: error: `XSetForeground' undeclared (first use this function)
src/about.c: In function `void DisplayAboutWindow()':
src/about.c:156: error: `dpy' undeclared (first use this function)
src/about.c:156: error: `aboutWindow' undeclared (first use this function)
src/about.c:156: error: `DisplayWidth' undeclared (first use this function)
src/about.c:156: error: `DisplayHeight' undeclared (first use this function)
src/about.c:156: error: `XMoveWindow' undeclared (first use this function)
src/about.c:157: error: `XMapRaised' undeclared (first use this function)
src/about.c:162: error: `fontSetVKWindow' undeclared (first use this function)
src/about.c:162: error: 'struct MESSAGE_COLOR' has no member named 'gc'
src/about.c:162: error: `OutputString' cannot be used as a function
src/about.c:168: error: 'struct MESSAGE_COLOR' has no member named 'gc'
src/about.c:168: error: `OutputString' cannot be used as a function
src/about.c:174: error: 'struct MESSAGE_COLOR' has no member named 'gc'
src/about.c:174: error: `OutputString' cannot be used as a function
src/about.c: In function `void setIcon()':
src/about.c:182: error: `Pixmap' undeclared (first use this function)
src/about.c:182: error: expected `;' before "pixmap"
src/about.c:183: error: expected `;' before "mask"
src/about.c:184: error: `XpmAttributes' undeclared (first use this function)
src/about.c:184: error: expected `;' before "attrib"
src/about.c:185: error: `XWMHints' undeclared (first use this function)
src/about.c:185: error: `h' undeclared (first use this function)
src/about.c:185: error: `dpy' undeclared (first use this function)
src/about.c:185: error: `aboutWindow' undeclared (first use this function)
src/about.c:185: error: `XGetWMHints' undeclared (first use this function)
src/about.c:186: error: expected `;' before "wm_hints"
src/about.c:187: error: `Bool' undeclared (first use this function)
src/about.c:187: error: expected `;' before "got_hints"
src/about.c:189: error: `attrib' undeclared (first use this function)
src/about.c:190: error: `about_icon_xpm' undeclared (first use this function)
src/about.c:190: error: `pixmap' undeclared (first use this function)
src/about.c:190: error: `mask' undeclared (first use this function)
src/about.c:190: error: `XCreatePixmapFromData' undeclared (first use this function)
src/about.c:191: error: `XpmSuccess' undeclared (first use this function)
src/about.c:192: error: `XpmGetErrorString' undeclared (first use this function)
src/about.c:196: error: `got_hints' undeclared (first use this function)
src/about.c:197: error: `wm_hints' undeclared (first use this function)
src/about.c:202: error: `IconPixmapHint' undeclared (first use this function)
src/about.c:202: error: `IconMaskHint' undeclared (first use this function)
src/about.c:203: error: `XSetWMHints' undeclared (first use this function)
src/about.c:205: error: `XFree' undeclared (first use this function)

make.exe: *** [src/about.o] Error 1

Execution terminated
回复 支持 反对

使用道具 举报

发表于 2007-7-28 22:34:01 | 显示全部楼层
移植成功记得说一下啊。。。我也要在WIN下用。。。
回复 支持 反对

使用道具 举报

发表于 2007-7-28 22:50:13 | 显示全部楼层
精神可嘉

但基础知识缺乏
回复 支持 反对

使用道具 举报

 楼主| 发表于 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
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-29 14:13:56 | 显示全部楼层

如何将fcitx里的Xwindow支持改为Windows的图形支持?

如何将fcitx里的Xwindow支持改为Windows的图形支持,我的开发环境是dev C++ 4.9.9.2。在去除XWindows的头文件后,出现了许多编译错误。有没有同道共同移植fcitx?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-29 14:25:56 | 显示全部楼层

fctix源码中的CARD16和Bool类型该如何编译?

fcitx源码中的CARD16和Bool类型该如何编译,我编译的是fcitx3.4.2的源码,环境是Dev C++ 4.9.9.2注掉了关于X11的所有头文件。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-29 14:42:06 | 显示全部楼层
有很多类型找不到:
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/about.c -o src/about.o -I"C:/Dev-Cpp/include/c++"  -I"C:/Dev-Cpp/include"   

In file included from src/about.c:21:
src/about.h:30: error: `Bool' does not name a type

In file included from src/about.c:22:
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/about.c:23:
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

src/about.c:24:26: about_icon.xpm: No such file or directory
src/about.c:25:21: version.h: No such file or directory
src/about.c:33:19: iconv.h: No such file or directory
src/about.c:34:23: X11/Xatom.h: No such file or directory
src/about.c:35:21: X11/xpm.h: No such file or directory
src/about.c:37: error: expected init-declarator before '*' token
src/about.c:37: error: expected `,' or `;' before '*' token
src/about.c:45: error: `XFontSet' does not name a type
src/about.c:48: error: `Window' does not name a type
src/about.c:50: error: too many initializers for `WINDOW_COLOR'

src/about.c:52: error: too many initializers for `MESSAGE_COLOR'
src/about.c:55: error: `Atom' does not name a type
src/about.c:56: error: `Atom' does not name a type

src/about.c:66: error: `iconv_t' does not name a type
src/about.c:67: error: `Bool' does not name a type
src/about.c:69: error: `Bool' does not name a type
src/about.c: In function `void InitWindowProperty()':
src/about.c:104: error: `XTextProperty' undeclared (first use this function)
src/about.c:104: error: (Each undeclared identifier is reported only once for each function it appears in.)
src/about.c:104: error: expected `;' before "tp"
src/about.c:108: error: `Atom' undeclared (first use this function)
src/about.c:108: error: expected `;' before "about_wm_window_type"
src/about.c:109: error: expected `;' before "type_toolbar"
src/about.c:111: error: `dpy' undeclared (first use this function)
src/about.c:111: error: `aboutWindow' undeclared (first use this function)
src/about.c:111: error: `DefaultRootWindow' undeclared (first use this function)
src/about.c:111: error: `XSetTransientForHint' undeclared (first use this function)
src/about.c:113: error: `about_wm_window_type' undeclared (first use this function)
src/about.c:113: error: `XA_ATOM' undeclared (first use this function)
src/about.c:113: error: `PropModeReplace' undeclared (first use this function)
src/about.c:113: error: `type_toolbar' undeclared (first use this function)
src/about.c:113: error: `XChangeProperty' undeclared (first use this function)
src/about.c:115: error: `about_protocol_atom' undeclared (first use this function)
src/about.c:115: error: `False' undeclared (first use this function)
src/about.c:115: error: `XInternAtom' undeclared (first use this function)
src/about.c:116: error: `about_kill_atom' undeclared (first use this function)
src/about.c:117: error: `XSetWMProtocols' undeclared (first use this function)
src/about.c:119: error: `bIsUtf8' undeclared (first use this function)
src/about.c:125: error: `strlen' undeclared (first use this function)
src/about.c:127: error: `convUTF8' undeclared (first use this function)
src/about.c:127: error: `iconv' undeclared (first use this function)
src/about.c:134: error: `tp' undeclared (first use this function)

src/about.c:135: error: `XA_STRING' undeclared (first use this function)
src/about.c:138: error: `XSetWMName' undeclared (first use this function)

src/about.c: In function `void InitAboutWindowColor()':
src/about.c:143: error: `XGCValues' undeclared (first use this function)
src/about.c:143: error: expected `;' before "values"
src/about.c:146: error: 'struct MESSAGE_COLOR' has no member named 'gc'
src/about.c:146: error: `dpy' undeclared (first use this function)
src/about.c:146: error: `aboutWindow' undeclared (first use this function)
src/about.c:146: error: `values' undeclared (first use this function)
src/about.c:146: error: `XCreateGC' undeclared (first use this function)
src/about.c:147: error: `DefaultScreen' undeclared (first use this function)
src/about.c:147: error: `DefaultColormap' undeclared (first use this function)
src/about.c:147: error: 'struct MESSAGE_COLOR' has no member named 'color'
src/about.c:147: error: `XAllocColor' undeclared (first use this function)
src/about.c:148: error: 'struct MESSAGE_COLOR' has no member named 'color'
src/about.c:150: error: `WhitePixel' undeclared (first use this function)

src/about.c:151: error: 'struct MESSAGE_COLOR' has no member named 'gc'
src/about.c:151: error: `XSetForeground' undeclared (first use this function)
src/about.c: In function `void DisplayAboutWindow()':
src/about.c:156: error: `dpy' undeclared (first use this function)
src/about.c:156: error: `aboutWindow' undeclared (first use this function)
src/about.c:156: error: `DisplayWidth' undeclared (first use this function)
src/about.c:156: error: `DisplayHeight' undeclared (first use this function)
src/about.c:156: error: `XMoveWindow' undeclared (first use this function)
src/about.c:157: error: `XMapRaised' undeclared (first use this function)
src/about.c:162: error: `fontSetVKWindow' undeclared (first use this function)
src/about.c:162: error: 'struct MESSAGE_COLOR' has no member named 'gc'
src/about.c:162: error: `OutputString' cannot be used as a function
src/about.c:168: error: 'struct MESSAGE_COLOR' has no member named 'gc'
src/about.c:168: error: `OutputString' cannot be used as a function
src/about.c:174: error: 'struct MESSAGE_COLOR' has no member named 'gc'
src/about.c:174: error: `OutputString' cannot be used as a function
src/about.c: In function `void setIcon()':
src/about.c:182: error: `Pixmap' undeclared (first use this function)
src/about.c:182: error: expected `;' before "pixmap"
src/about.c:183: error: expected `;' before "mask"
src/about.c:184: error: `XpmAttributes' undeclared (first use this function)
src/about.c:184: error: expected `;' before "attrib"
src/about.c:185: error: `XWMHints' undeclared (first use this function)
src/about.c:185: error: `h' undeclared (first use this function)
src/about.c:185: error: `dpy' undeclared (first use this function)
src/about.c:185: error: `aboutWindow' undeclared (first use this function)
src/about.c:185: error: `XGetWMHints' undeclared (first use this function)
src/about.c:186: error: expected `;' before "wm_hints"
src/about.c:187: error: `Bool' undeclared (first use this function)

src/about.c:187: error: expected `;' before "got_hints"
src/about.c:189: error: `attrib' undeclared (first use this function)

src/about.c:190: error: `about_icon_xpm' undeclared (first use this function)
src/about.c:190: error: `pixmap' undeclared (first use this function)
src/about.c:190: error: `mask' undeclared (first use this function)
src/about.c:190: error: `XCreatePixmapFromData' undeclared (first use this function)
src/about.c:191: error: `XpmSuccess' undeclared (first use this function)
src/about.c:192: error: `XpmGetErrorString' undeclared (first use this function)
src/about.c:196: error: `got_hints' undeclared (first use this function)
src/about.c:197: error: `wm_hints' undeclared (first use this function)
src/about.c:202: error: `IconPixmapHint' undeclared (first use this function)

src/about.c:202: error: `IconMaskHint' undeclared (first use this function)
src/about.c:203: error: `XSetWMHints' undeclared (first use this function)
src/about.c:205: error: `XFree' undeclared (first use this function)

make.exe: *** [src/about.o] Error 1

Execution terminated
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-29 14:42:53 | 显示全部楼层
有很多类型找不到:
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/about.c -o src/about.o -I"C:/Dev-Cpp/include/c++"  -I"C:/Dev-Cpp/include"   

In file included from src/about.c:21:
src/about.h:30: error: `Bool' does not name a type

In file included from src/about.c:22:
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/about.c:23:
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

src/about.c:24:26: about_icon.xpm: No such file or directory
src/about.c:25:21: version.h: No such file or directory
src/about.c:33:19: iconv.h: No such file or directory
src/about.c:34:23: X11/Xatom.h: No such file or directory
src/about.c:35:21: X11/xpm.h: No such file or directory
src/about.c:37: error: expected init-declarator before '*' token
src/about.c:37: error: expected `,' or `;' before '*' token
src/about.c:45: error: `XFontSet' does not name a type
src/about.c:48: error: `Window' does not name a type
src/about.c:50: error: too many initializers for `WINDOW_COLOR'

src/about.c:52: error: too many initializers for `MESSAGE_COLOR'
src/about.c:55: error: `Atom' does not name a type
src/about.c:56: error: `Atom' does not name a type

src/about.c:66: error: `iconv_t' does not name a type
src/about.c:67: error: `Bool' does not name a type
src/about.c:69: error: `Bool' does not name a type
src/about.c: In function `void InitWindowProperty()':
src/about.c:104: error: `XTextProperty' undeclared (first use this function)
src/about.c:104: error: (Each undeclared identifier is reported only once for each function it appears in.)
src/about.c:104: error: expected `;' before "tp"
src/about.c:108: error: `Atom' undeclared (first use this function)
src/about.c:108: error: expected `;' before "about_wm_window_type"
src/about.c:109: error: expected `;' before "type_toolbar"
src/about.c:111: error: `dpy' undeclared (first use this function)
src/about.c:111: error: `aboutWindow' undeclared (first use this function)
src/about.c:111: error: `DefaultRootWindow' undeclared (first use this function)
src/about.c:111: error: `XSetTransientForHint' undeclared (first use this function)
src/about.c:113: error: `about_wm_window_type' undeclared (first use this function)
src/about.c:113: error: `XA_ATOM' undeclared (first use this function)
src/about.c:113: error: `PropModeReplace' undeclared (first use this function)
src/about.c:113: error: `type_toolbar' undeclared (first use this function)
src/about.c:113: error: `XChangeProperty' undeclared (first use this function)
src/about.c:115: error: `about_protocol_atom' undeclared (first use this function)
src/about.c:115: error: `False' undeclared (first use this function)
src/about.c:115: error: `XInternAtom' undeclared (first use this function)
src/about.c:116: error: `about_kill_atom' undeclared (first use this function)
src/about.c:117: error: `XSetWMProtocols' undeclared (first use this function)
src/about.c:119: error: `bIsUtf8' undeclared (first use this function)
src/about.c:125: error: `strlen' undeclared (first use this function)
src/about.c:127: error: `convUTF8' undeclared (first use this function)
src/about.c:127: error: `iconv' undeclared (first use this function)
src/about.c:134: error: `tp' undeclared (first use this function)

src/about.c:135: error: `XA_STRING' undeclared (first use this function)
src/about.c:138: error: `XSetWMName' undeclared (first use this function)

src/about.c: In function `void InitAboutWindowColor()':
src/about.c:143: error: `XGCValues' undeclared (first use this function)
src/about.c:143: error: expected `;' before "values"
src/about.c:146: error: 'struct MESSAGE_COLOR' has no member named 'gc'
src/about.c:146: error: `dpy' undeclared (first use this function)
src/about.c:146: error: `aboutWindow' undeclared (first use this function)
src/about.c:146: error: `values' undeclared (first use this function)
src/about.c:146: error: `XCreateGC' undeclared (first use this function)
src/about.c:147: error: `DefaultScreen' undeclared (first use this function)
src/about.c:147: error: `DefaultColormap' undeclared (first use this function)
src/about.c:147: error: 'struct MESSAGE_COLOR' has no member named 'color'
src/about.c:147: error: `XAllocColor' undeclared (first use this function)
src/about.c:148: error: 'struct MESSAGE_COLOR' has no member named 'color'
src/about.c:150: error: `WhitePixel' undeclared (first use this function)

src/about.c:151: error: 'struct MESSAGE_COLOR' has no member named 'gc'
src/about.c:151: error: `XSetForeground' undeclared (first use this function)
src/about.c: In function `void DisplayAboutWindow()':
src/about.c:156: error: `dpy' undeclared (first use this function)
src/about.c:156: error: `aboutWindow' undeclared (first use this function)
src/about.c:156: error: `DisplayWidth' undeclared (first use this function)
src/about.c:156: error: `DisplayHeight' undeclared (first use this function)
src/about.c:156: error: `XMoveWindow' undeclared (first use this function)
src/about.c:157: error: `XMapRaised' undeclared (first use this function)
src/about.c:162: error: `fontSetVKWindow' undeclared (first use this function)
src/about.c:162: error: 'struct MESSAGE_COLOR' has no member named 'gc'
src/about.c:162: error: `OutputString' cannot be used as a function
src/about.c:168: error: 'struct MESSAGE_COLOR' has no member named 'gc'
src/about.c:168: error: `OutputString' cannot be used as a function
src/about.c:174: error: 'struct MESSAGE_COLOR' has no member named 'gc'
src/about.c:174: error: `OutputString' cannot be used as a function
src/about.c: In function `void setIcon()':
src/about.c:182: error: `Pixmap' undeclared (first use this function)
src/about.c:182: error: expected `;' before "pixmap"
src/about.c:183: error: expected `;' before "mask"
src/about.c:184: error: `XpmAttributes' undeclared (first use this function)
src/about.c:184: error: expected `;' before "attrib"
src/about.c:185: error: `XWMHints' undeclared (first use this function)
src/about.c:185: error: `h' undeclared (first use this function)
src/about.c:185: error: `dpy' undeclared (first use this function)
src/about.c:185: error: `aboutWindow' undeclared (first use this function)
src/about.c:185: error: `XGetWMHints' undeclared (first use this function)
src/about.c:186: error: expected `;' before "wm_hints"
src/about.c:187: error: `Bool' undeclared (first use this function)

src/about.c:187: error: expected `;' before "got_hints"
src/about.c:189: error: `attrib' undeclared (first use this function)

src/about.c:190: error: `about_icon_xpm' undeclared (first use this function)
src/about.c:190: error: `pixmap' undeclared (first use this function)
src/about.c:190: error: `mask' undeclared (first use this function)
src/about.c:190: error: `XCreatePixmapFromData' undeclared (first use this function)
src/about.c:191: error: `XpmSuccess' undeclared (first use this function)
src/about.c:192: error: `XpmGetErrorString' undeclared (first use this function)
src/about.c:196: error: `got_hints' undeclared (first use this function)
src/about.c:197: error: `wm_hints' undeclared (first use this function)
src/about.c:202: error: `IconPixmapHint' undeclared (first use this function)

src/about.c:202: error: `IconMaskHint' undeclared (first use this function)
src/about.c:203: error: `XSetWMHints' undeclared (first use this function)
src/about.c:205: error: `XFree' undeclared (first use this function)

make.exe: *** [src/about.o] Error 1

Execution terminated
回复 支持 反对

使用道具 举报

 楼主| 发表于 2007-7-29 14:53:26 | 显示全部楼层
可不可以找到XWindow的头文件,把他们编译进windows版本?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表