[問題] nachos multiprograming
開發平台(Platform): (Ex: VC++, GCC, Linux, ...)
linux
問題(Question):
因為作業需要...我從來沒有學過c++(我只會C跟python)
現在我的想法是...在address.h中的class AddrSpace下
新增一個table去紀錄記憶體使用的狀況
但在make時一直undefined reference to
想請問大概的原因是?
錯誤結果(Wrong Output):
addrspace.o: In function `~AddrSpace':
/home/2011OS/g03/nachos-4.0/code/userprog/../userprog/addrspace.cc:71:
undefined reference to `AddrSpace::usedPhyPage'
/home/2011OS/g03/nachos-4.0/code/userprog/../userprog/addrspace.cc:71:
undefined reference to `AddrSpace::usedPhyPage'
addrspace.o: In function `AddrSpace::Load(char*)':
/home/2011OS/g03/nachos-4.0/code/userprog/../userprog/addrspace.cc:113:
undefined reference to `AddrSpace::usedPhyPage'
/home/2011OS/g03/nachos-4.0/code/userprog/../userprog/addrspace.cc:115:
undefined reference to `AddrSpace::usedPhyPage'
程式碼(Code):(請善用置底文網頁, 記得排版)
address.h http://codepad.org/aRDGwmEs
address.cc http://codepad.org/KnSScYEa line 71,113,115
補充說明(Supplement):
--
※ 發信站 :批踢踢實業坊(ptt.cc)
◆ From: 118.160.66.18
→
10/14 20:38, , 1F
10/14 20:38, 1F
→
10/14 20:38, , 2F
10/14 20:38, 2F
→
10/14 20:44, , 3F
10/14 20:44, 3F
→
10/14 20:45, , 4F
10/14 20:45, 4F
→
10/14 20:46, , 5F
10/14 20:46, 5F
C_and_CPP 近期熱門文章
PTT數位生活區 即時熱門文章