[問題] 有人有用過 cfitsio 嗎?

看板C_and_CPP (C/C++)作者 (龍騎士2)時間16年前 (2009/12/04 13:51), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
※ [本文轉錄自 Programming 看板] 作者: longrider (龍騎士2) 看板: Programming 標題: [問題] 有人有用過 cfitsio 嗎? 時間: Fri Dec 4 00:08:50 2009 請問, 有人有用過 cfitsio 嗎? 我在 Ubuntu 9.10 下, 透過 synaptic 把 libcfitsio3-dev 裝起來 然後嘗試這個範例 http://heasarc.gsfc.nasa.gov/docs/software/fitsio/quick/node4.html 準備 Compile(使用指令如下) mgcc -o myprog myprog.c -L. -lcfitsio -lm -lnsl -lsocket 卻收到這個回應 /usr/bin/ld: cannot find -lsocket 再次 Compile(去掉 -lsocket) gcc -o myprog myprog.c -L. -lcfitsio -lm -lnsl 可以通過 Compile 但執行時卻出現 user@myubuntu:~/c$ ./testfits 程式記憶體區段錯誤 有人可以指點迷津嗎? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.115.34.47 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.115.34.47
文章代碼(AID): #1B6ADNIx (C_and_CPP)
文章代碼(AID): #1B6ADNIx (C_and_CPP)