[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: 編譯的問題.



On Wed, Sep 19, 2001 at 08:55:13PM +0800, debian_zh@citiz.net wrote:
> 大家好:
> 	這個問題可能和debian沒有多大關系,但還是老煩各位指點一下.
> 	是這樣的,師兄有個物理模擬程序,在redhat下編譯了好幾次都不行,
> 所以我就拿來在debian(woody)下編譯.結果老是
> 
> ld: cannot open crtbegin.o: No such file or directory
> make[2]: *** [../../bin/Build] Error 1
> make[1]: *** [MAIN] Error 2
> make: *** [COMPILE] Error 2
> 
crtbegin.o 是gcc的初使化XX(object file),它是在gcc包裡。
ld 的時候加 -lgcc 應該可以,要不你直接連它。
ld /usr/lib/gcc-lib/i386-linux/2.95.4/crtbegin.o ......

或者直接用gcc連接,它應該知道怎麼做。或者libtools 大概也能處理吧。

> 該程序要用openmotif的庫,我在woody下安裝了libmotif_2.1.30-2_i386.deb和
> libmotif-dev_2.1.30-2_i386.deb.因為在師兄機器上編譯沒有這個問題,
> 所以我想不會是源程序的問題,該不會是motif的庫或系統的庫沒裝全吧.
> 	在此先謝謝大家了.
> 

紅帽子大概把gcc-lib 放到ld的搜索路徑裡了吧?

-- 
hashao|                 故兵貴勝,不貴久。
hashao|                 故知兵之將,民之司命。國家安危之主也。

-- 
To UNSUBSCRIBE, email to debian-chinese-gb-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

-- 
| This message was re-posted from debian-chinese-gb@lists.debian.org
| and converted from gb2312 to big5 by an automatic gateway.



Reply to: