ld: cannot find crt1.o: No such file or directory - Linux

By Isabella
at 2011-08-07T22:35
at 2011-08-07T22:35
Table of Contents
我用的是 debian testing
當安裝了 g95 去 complie 一個程式的時候出現
ld: cannot find crt1.o: No such file or directory
ld: cannot find crti.o: No such file or directory
google的結論是說 要裝 libc6-dev 裡面就有
可是我檢查過 系統裡當然有裝這個程式 可是就是沒有這兩個檔案
(/usr/lib/ 下沒有 用whereis 也找過沒有)
然而 反倒是如果裝了 lib6-dev-amd64 就會在 /usr/lib64 裡面出現這幾個檔
可是這幾個檔是給64的用的 所以即使硬 cp 到 /usr/lib 下 也只是出現
ld: i386:x86-64 architecture of input file `/usr/lib///crt1.o' is
incompatible with i386 output
ld: i386:x86-64 architecture of input file `/usr/lib///crti.o' is
incompatible with i386 output
請問有沒有什麼建議?
感謝
--
當安裝了 g95 去 complie 一個程式的時候出現
ld: cannot find crt1.o: No such file or directory
ld: cannot find crti.o: No such file or directory
google的結論是說 要裝 libc6-dev 裡面就有
可是我檢查過 系統裡當然有裝這個程式 可是就是沒有這兩個檔案
(/usr/lib/ 下沒有 用whereis 也找過沒有)
然而 反倒是如果裝了 lib6-dev-amd64 就會在 /usr/lib64 裡面出現這幾個檔
可是這幾個檔是給64的用的 所以即使硬 cp 到 /usr/lib 下 也只是出現
ld: i386:x86-64 architecture of input file `/usr/lib///crt1.o' is
incompatible with i386 output
ld: i386:x86-64 architecture of input file `/usr/lib///crti.o' is
incompatible with i386 output
請問有沒有什麼建議?
感謝
--
Tags:
Linux
All Comments

By Sandy
at 2011-08-10T10:47
at 2011-08-10T10:47
所以你編譯的時候要把那個參數拿掉

By Suhail Hany
at 2011-08-12T13:23
at 2011-08-12T13:23

By Hazel
at 2011-08-15T07:29
at 2011-08-15T07:29
cp 了一份到 /usr/lib就解決了 不過compile還是沒過 orz
別的問題

By Faithe
at 2011-08-16T02:50
at 2011-08-16T02:50

By Poppy
at 2011-08-20T05:33
at 2011-08-20T05:33

By Rae
at 2011-08-22T03:57
at 2011-08-22T03:57
不過真希望linux 不同版本間關於哪個東西放哪裡的定義能夠
稍微一致一點~
Related Posts
系統突然完全不能動

By Hazel
at 2011-08-07T21:55
at 2011-08-07T21:55
Ubuntu 10.04 sever 下載失敗

By Steve
at 2011-08-07T20:26
at 2011-08-07T20:26
兩張網卡設定不同IP卻都連的到?

By Edwina
at 2011-08-07T11:45
at 2011-08-07T11:45
ubuntu安裝至隨身碟應用上之問題

By Odelette
at 2011-08-07T11:04
at 2011-08-07T11:04
關於 systemd

By Christine
at 2011-08-07T10:39
at 2011-08-07T10:39