EE_DSnP 板


LINE

我是把原本的资料夹名字改一改就压缩传上去,然後就出现谜样的错误讯息: Filename: b98901088_hw4.tgz >>>Uncompress succeed.<<< Cleaning mem... ../Makefile.in:56: .depend.mak: No such file or directory ../Makefile.in:57: .extheader.mak: No such file or directory Linking external header files... Making dependencies ... Cleaning util... ../Makefile.in:56: .depend.mak: No such file or directory ../Makefile.in:57: .extheader.mak: No such file or directory Linking external header files... Making dependencies ... Cleaning main... ../Makefile.in:56: .depend.mak: No such file or directory ../Makefile.in:57: .extheader.mak: No such file or directory Linking external header files... Making dependencies ... main.cpp:9:18: error: util.h: No such file or directory make[1]: *** [.depend.mak] Error 1 make: *** [clean] Error 2 Checking mem... make[1]: *** No rule to make target `../../include/util.h', needed by `memCmd.o'. Stop. Checking util... > compiling: myGetChar.cpp > compiling: myString.cpp > compiling: util.cpp Building libutil.a... Checking main... > building memTest... /usr/bin/ld: skipping incompatible ../../lib/libmem.a when searching for -lmem /usr/bin/ld: cannot find -lmem collect2: ld returned 1 exit status make[1]: *** [../../bin/memTest] Error 1 make: *** [main] Error 2 Checking mem... > compiling: memCmd.cpp memTest.h: In member function 'void MemTest::newObjs(size_t)': memTest.h:59: warning: comparison between signed and unsigned integer expressions memTest.h: In member function 'void MemTest::newArrs(size_t, size_t)': memTest.h:70: warning: comparison between signed and unsigned integer expressions memCmd.cpp: In member function 'virtual CmdExecStatus MTDeleteCmd::exec(const std::string&)': memCmd.cpp:222: warning: comparison between signed and unsigned integer expressions memCmd.cpp:248: warning: comparison between signed and unsigned integer expressions memMgr.h: In member function 'void MemMgr::freeArr(T*) [with T = MemTestObj]': memTest.h:27: instantiated from here memMgr.h:324: warning: unused variable 'n' memMgr.h: In member function 'bool MemBlock::getMem(size_t, T*&) [with T = MemTestObj]': memMgr.h:477: instantiated from 'T* MemMgr::getMem(size_t) [with T = MemTestObj]' memMgr.h:289: instantiated from 'T* MemMgr::alloc(size_t) [with T = MemTestObj]' memTest.h:27: instantiated from here memMgr.h:90: warning: unused variable 'fakeptr' memCmd.cpp: In member function 'virtual CmdExecStatus MTDeleteCmd::exec(const std::string&)': memCmd.cpp:277: warning: control reaches end of non-void function memCmd.cpp: In member function 'virtual CmdExecStatus MTNewCmd::exec(const std::string&)': memCmd.cpp:146: warning: control reaches end of non-void function > compiling: memTest.cpp memTest.h: In member function 'void MemTest::newObjs(size_t)': memTest.h:59: warning: comparison between signed and unsigned integer expressions memTest.h: In member function 'void MemTest::newArrs(size_t, size_t)': memTest.h:70: warning: comparison between signed and unsigned integer expressions memMgr.h: In member function 'void MemMgr::freeArr(T*) [with T = MemTestObj]': memTest.h:27: instantiated from here memMgr.h:324: warning: unused variable 'n' memMgr.h: In member function 'bool MemBlock::getMem(size_t, T*&) [with T = MemTestObj]': memMgr.h:477: instantiated from 'T* MemMgr::getMem(size_t) [with T = MemTestObj]' memMgr.h:289: instantiated from 'T* MemMgr::alloc(size_t) [with T = MemTestObj]' memTest.h:27: instantiated from here memMgr.h:90: warning: unused variable 'fakeptr' Building libmem.a... Checking util... Checking main... > building memTest... /usr/bin/ld: warning: i386 architecture of input file `main.o' is incompatible with i386:x86-64 output /usr/bin/ld: Dwarf Error: mangled line number section. main.o: In function `MyUsage::checkMem() const': main.cpp:(.text._ZNK7MyUsage8checkMemEv[MyUsage::checkMem() const]+0xac): undefined reference to `std::basic_istream >::getline(char*, int)' collect2: ld returned 1 exit status make[1]: *** [../../bin/memTest] Error 1 make: *** [main] Error 2 Checking mem... Checking util... Checking main... > building memTest... /usr/bin/ld: warning: i386 architecture of input file `main.o' is incompatible with i386:x86-64 output /usr/bin/ld: Dwarf Error: mangled line number section. main.o: In function `MyUsage::checkMem() const': main.cpp:(.text._ZNK7MyUsage8checkMemEv[MyUsage::checkMem() const]+0xac): undefined reference to `std::basic_istream >::getline(char*, int)' collect2: ld returned 1 exit status make[1]: *** [../../bin/memTest] Error 1 make: *** [main] Error 2 >>>Compile failed!<<< 我怎麽看都觉得不太像是我的问题...尤其是最前面那几个error。 不管怎麽make clean, make 32, make 64...我都不知道自己在干什麽 反正就是把make的各种可能都试试看,但就是不行,怎麽上传怎麽错。 请问这又该是什麽状况呢? -- 春苑树雪菜萌苗,雀儿喜上夏枝梢;蓝眼望尽黄泉路,只盼俪人一美笑长巾初解投送抱,金珠丽叶贺新好;神代仙眷且羡嫉,长伴相随誓到老。 静马千华留秋晚,冬风不止三乡道;红枝立约携手情,今此空余泣嚎啕。 姬宫千歌音悠悠,樱井奏乐声袅袅;奈何天令伊人变,飞离斯爱离斯去。 结城AIRA→ 悲恸独泣无人应,白昼梦尽皆空语。 ←美乡あき Kalafina→ 红月旋响戚音乐,黯然步上镇魂旅 ←飞 兰 --



※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.112.4.195
1F:推 goodword:确定你有 make clean; make 64 之後才压缩上传 11/23 17:09
2F:→ takua624:OK了,谢谢助教啦! 11/23 17:18







like.gif 您可能会有兴趣的文章
icon.png[问题/行为] 猫晚上进房间会不会有憋尿问题
icon.pngRe: [闲聊] 选了错误的女孩成为魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一张
icon.png[心得] EMS高领长版毛衣.墨小楼MC1002
icon.png[分享] 丹龙隔热纸GE55+33+22
icon.png[问题] 清洗洗衣机
icon.png[寻物] 窗台下的空间
icon.png[闲聊] 双极の女神1 木魔爵
icon.png[售车] 新竹 1997 march 1297cc 白色 四门
icon.png[讨论] 能从照片感受到摄影者心情吗
icon.png[狂贺] 贺贺贺贺 贺!岛村卯月!总选举NO.1
icon.png[难过] 羡慕白皮肤的女生
icon.png阅读文章
icon.png[黑特]
icon.png[问题] SBK S1安装於安全帽位置
icon.png[分享] 旧woo100绝版开箱!!
icon.pngRe: [无言] 关於小包卫生纸
icon.png[开箱] E5-2683V3 RX480Strix 快睿C1 简单测试
icon.png[心得] 苍の海贼龙 地狱 执行者16PT
icon.png[售车] 1999年Virage iO 1.8EXi
icon.png[心得] 挑战33 LV10 狮子座pt solo
icon.png[闲聊] 手把手教你不被桶之新手主购教学
icon.png[分享] Civic Type R 量产版官方照无预警流出
icon.png[售车] Golf 4 2.0 银色 自排
icon.png[出售] Graco提篮汽座(有底座)2000元诚可议
icon.png[问题] 请问补牙材质掉了还能再补吗?(台中半年内
icon.png[问题] 44th 单曲 生写竟然都给重复的啊啊!
icon.png[心得] 华南红卡/icash 核卡
icon.png[问题] 拔牙矫正这样正常吗
icon.png[赠送] 老莫高业 初业 102年版
icon.png[情报] 三大行动支付 本季掀战火
icon.png[宝宝] 博客来Amos水蜡笔5/1特价五折
icon.pngRe: [心得] 新鲜人一些面试分享
icon.png[心得] 苍の海贼龙 地狱 麒麟25PT
icon.pngRe: [闲聊] (君の名は。雷慎入) 君名二创漫画翻译
icon.pngRe: [闲聊] OGN中场影片:失踪人口局 (英文字幕)
icon.png[问题] 台湾大哥大4G讯号差
icon.png[出售] [全国]全新千寻侘草LED灯, 水草

请输入看板名称,例如:Tech_Job站内搜寻

TOP