| 2 | 1/1 | 返回列表 |
| 查看: 1943 | 回復(fù): 1 | ||
[求助]
編譯時(shí)提示:Undefined symbols for architecture x86_64,沒有具體的錯(cuò)誤 已有1人參與
|
|
如題編譯時(shí)出現(xiàn),問題但是沒有具體的問題提示,一下是我的編譯的命令和輸出: pv-chem-1673:numerical-recipes xxxx$gfortran -c commondat.f90 pv-chem-1673:numerical-recipes xxxx$ gfortran test.f90 -o test commondat.o Undefined symbols for architecture x86_64: "_ln_", referenced from: _MAIN__ in ccU9GAVo.o ld: symbol(s) not found for architecture x86_64 collect2: error: ld returned 1 exit status pv-chem-1673:numerical-recipes xxx$ 還有一種辦法就是把所有commondat.f90 和test.f90一起編譯成 *.o的文件,然后再gfortran -o 把他們連起來: pv-chem-1673:numerical-recipes xxxx$ gfortran -c commondat.f90 pv-chem-1673:numerical-recipes xxxx$ gfortran -c solar-1.f90 pv-chem-1673:numerical-recipes xxxx$ gfortran -o solar-1.o commondat.o Undefined symbols for architecture x86_64: "_main", referenced from: implicit entry/start for main executable ld: symbol(s) not found for architecture x86_64 collect2: error: ld returned 1 exit status pv-chem-1673:numerical-recipes xxxx$ 我在網(wǎng)上搜了很多,但是就是不知道具體是什么問題,有哪位大神知道怎么回事嗎?先謝謝咯! |


| 2 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 085601材料工程專碩求調(diào)劑 +10 | 慕寒mio 2026-03-16 | 10/500 |
|
|---|---|---|---|---|
|
[考研] 一志愿華中科技大學(xué),080502,354分求調(diào)劑 +4 | 守候夕陽CF 2026-03-18 | 4/200 |
|
|
[考研] 一志愿武理材料305分求調(diào)劑 +5 | 想上岸的鯉魚 2026-03-18 | 6/300 |
|
|
[考研] 材料與化工一志愿南昌大學(xué)327求調(diào)劑推薦 +8 | Ncdx123456 2026-03-13 | 9/450 |
|
|
[考研] 收復(fù)試調(diào)劑生 +4 | 雨后秋荷 2026-03-18 | 4/200 |
|
|
[考研] 280求調(diào)劑 +6 | 咕嚕曉曉 2026-03-18 | 7/350 |
|
|
[考博] 26博士申請(qǐng) +3 | 1042136743 2026-03-17 | 3/150 |
|
|
[考研] 有沒有道鐵/土木的想調(diào)劑南林,給自己招師弟中~ +3 | TqlXswl 2026-03-16 | 7/350 |
|
|
[考研] 211本,11408一志愿中科院277分,曾在中科院自動(dòng)化所實(shí)習(xí) +6 | Losir 2026-03-12 | 7/350 |
|
|
[考研] 302求調(diào)劑 +4 | 小賈同學(xué)123 2026-03-15 | 8/400 |
|
|
[考研] 278求調(diào)劑 +3 | Yy7400 2026-03-13 | 3/150 |
|
|
[考研] 274求調(diào)劑 +5 | 時(shí)間點(diǎn) 2026-03-13 | 5/250 |
|
|
[考研] 一志愿211 0703方向310分求調(diào)劑 +3 | 努力奮斗112 2026-03-15 | 3/150 |
|
|
[考研] 321求調(diào)劑 +5 | 大米飯! 2026-03-15 | 5/250 |
|
|
[考研] 277材料科學(xué)與工程080500求調(diào)劑 +3 | 自由煎餅果子 2026-03-16 | 3/150 |
|
|
[考研] 0856求調(diào)劑 +3 | 劉夢(mèng)微 2026-03-15 | 3/150 |
|
|
[考研] 326求調(diào)劑 +3 | mlpqaz03 2026-03-15 | 3/150 |
|
|
[考研] 294求調(diào)劑 +3 | Zys010410@ 2026-03-13 | 4/200 |
|
|
[考研] 330求調(diào)劑 +3 | ?醬給調(diào)劑跪了 2026-03-13 | 3/150 |
|
|
[碩博家園] 085600 260分求調(diào)劑 +3 | 天空還下雨么 2026-03-13 | 5/250 |
|