我想用cygwin將C++程序從Linux移植到Windows。現在我已經建立並連接好了,但是當我啓動程序時,它立即退出並出現錯誤。當我嘗試在gdb,我得到下面的「未知的目標異常」的結果:Cygwin端口不工作=>在啓動時立即退出
$ gdb ../../bin/ARCH.cygwin/release/myApp
GNU gdb 6.8.0.20080328-cvs (cygwin-special)
Copyright (C) 2008 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This GDB was configured as "i686-pc-cygwin"...
(no debugging symbols found)
(gdb) run
Starting program: bin/ARCH.cygwin/release/myApp.exe
[New thread 1452.0x99c]
gdb: unknown target exception 0xc0000139 at 0x77149eed
Program exited with code 030000000471.
You can't do that without a process to debug.
在不GDB,它提出了對話框,上面寫着:「A問題導致程序停止正常工作Windows將關閉該程序並通知您是否有解決方案。「
任何想法,我可能做錯了什麼?
謝謝。
- 威廉