作者scxz (tears and rain)
看板EE_DSnP
標題Re: [問題] make
時間Wed Dec 13 23:11:42 2006
※ 引述《EEmuse2 (忘了密碼)》之銘言:
: 想請問一下...
: 我執行make時
: 出現
: Checking util...
: > compiling: myGetChar.cpp
: > compiling: myString.cpp
: > compiling: util.cpp
: Building libutil.a...
: Checking main...
: > compiling: main.cpp
: make[1]: Warning: File `../../lib/lib.d' has modification time 0.65 s in the future
: > building memTest...
: /usr/bin/ld: cannot find -lmem
: collect2: ld returned 1 exit status
: make[1]: *** [../../bin/memTest] Error 1
: make: *** [all] Error 2
: 請問是我的檔案出問題嗎??
我之前有很類似的問題 直到我把hw4.tgz直接移到工作站上解壓縮才可以成功make
想請問到底一開始在hw4/裡的
memTest是什麼東西呢?我用ftp沒辦法移動
此外 作業用fedora core 6似乎不能compile過 問題好像是出在assert上 不知該如何解決
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.241.149
推 suspect1:我也是碰到類似的問題,今天去請教老師後用系上的工作站 12/13 23:49
→ suspect1:就行了 12/13 23:50
→ suspect1:關於assert 你是不是沒有加<assert.h> ?老師的CODE中不知 12/13 23:51
→ suspect1:道好像沒有include 12/13 23:52
推 ric2k1:memTest is a symbolic link to bin/memTest 12/13 23:53
推 ric2k1:I suggest you to ftp .tgz file instead of 12/13 23:53
推 ric2k1:the individual file. Otherwise, the symbolic link will 12/13 23:55
推 ric2k1:break (becomes a copy). 12/13 23:55