step 1: 安裝 libiconv
http://ftp.ntu.edu.tw/cygwin/release/libiconv/libiconv-1.11-1.tar.bz2
將 libiconv-1.11-1.tar.bz2 下載回來,解壓縮後,
把 lib/ 裡的 .a 檔,複製到 C:\cygwin\lib 中
把 include/ 裡的 .h 檔,複製到 C:\cygwin\usr\include 中
---
step 2: 下載 dict.c
http://web.ntnu.edu.tw/~49308014/dict.c
將 dict.c 複製到 ~/src/game 下
---
step 3:
: ~/src/maple/maple.p
int main_dice();
+int main_dreye();
int main_gp();
: ~/src/maple/Makefile
SRC = acct.c bbsd.c ... ../game/dice.c ../game/dict.c
OBJ = acct.o bbsd.o ... ../game/dice.o ../game/dict.o
cygwin:
@$(MAKE) CC=gcc ... -lcygipc -liconv" $(EXE)
: ~/src/maple/menu.c:menu() 選單按 ^W 查字典
case Ctrl('U'):
every_U(0);
goto every_key;
+ case Ctrl('W'):
+ main_dreye();
+ goto every_key;
: ~/src/maple/xover.c:xover() 介面按 ^W 查字典
else if (cmd == Ctrl('U'))
{
cmd = every_U(zone);
}
+ else if (cmd == Ctrl('W'))
+ {
+ main_dreye();
+ cmd = XO_INIT;
+ }
---
step 4:
cd ~/src/maple
make cygwin install update
==
登入後 Ctrl + W 查字典
--
=[﹎:�摃�◣��:﹎Origin ]|[ ���O���� cpu.tfcis.org ]|[�搟說�﹎:]=
=[﹊:�摃�╱��:﹊Author ]|[ lzchpc.sdorm.ntnu.edu.tw ]|[���插�﹊:]=