[問題] 在什麼情形下..直接執行會有問題 gdb run不會有問題
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
額外使用到的函數庫(Library Used): (Ex: OpenGL, ...)
win7 cygwin ns2
問題(Question):
直接執行會造成segment fault
% ns test.tcl
用gdb就exited normally
% gdb ns.exe
(gdb) set args test.tcl
(gdb) run
餵入的資料(Input):
預期的正確結果(Expected Output):
錯誤結果(Wrong Output):
程式碼(Code):(請善用置底文網頁, 記得排版)
補充說明(Supplement):
就是想問問看大家有沒有遇到過這樣的情況? 很好奇!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 180.177.10.69
→
06/14 09:22, , 1F
06/14 09:22, 1F
→
06/14 09:23, , 2F
06/14 09:23, 2F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章