| adm | Find | login register |
本人已不在此站活動 joined: 2007-09-19 posted: 4946 promoted: 325 bookmarked: 206 歸隱山林 |
gcin-im-client.cpp:14:2: error: #else without #if
edt1023:/tmp/gcin-1.4.7.pre22$ gcc --version glibc-2.7 Zenwalk 5.2
| |||||||||
caleb joined: 2007-09-22 posted: 630 promoted: 134 bookmarked: 90 |
| |||||||||
本人已不在此站活動 joined: 2007-09-19 posted: 4946 promoted: 325 bookmarked: 206 歸隱山林 |
哇咧,還真的是有 bom。你是怎麼發現的? eliu @_@
| |||||||||
eliu joined: 2007-08-09 posted: 11478 promoted: 617 bookmarked: 187 新竹, 台灣 |
gcc 4.4.1 可以處理 BOM
| |||||||||
本人已不在此站活動 joined: 2007-09-19 posted: 4946 promoted: 325 bookmarked: 206 歸隱山林 |
vim -b file 就可以看得見 bom,把他刪除,存檔就成了。或 cat file | od -t x1 | grep 'ef bb bf' → 檢查檔案是否含 UTF-8 BOM cut -b 4- file > file-nobom → 去除 BOM 或者也有人寫了專用工具 bomstrip: http://www.xs4all.nl/~mechiel/projects/bomstrip/ 再或者,你想練一下 perl/python/ruby/php,那就寫一小段 script 處理一下。
edited: 3
|
| adm | Find | login register |