看板 b94902HW 關於我們 聯絡資訊
Project1的投影片上有說要在make depend前 加幾行到makefile中 就把build.linux跟coff2noff的makefile的改一改在make就可以了 ※ 引述《gieks (strange deja vu)》之銘言: : ※ 引述《hegemon (hegemon)》之銘言: : : 有人有試過在自己的ubuntu上安裝Nachos嗎? : : 剛剛試了一下發現無法make... : : 有很多變數沒有定義..造成make失敗... : : 目前正在努力看每個code當中... : 在217的linux主機上安裝也有問題... : 用過linux7(64nit)與linux15(32bit)都是一樣的問題 : compile nachos 時 error : error message 如下 : g++ -g -Wall -I../network -I../filesys -I../userprog -I../threads : -I../machine -I../lib -I- -DFILESYS_STUB -DRDATA -DSIM_FIX -Dx86 -DLINUX : -DCHANGED -c ../threads/thread.cc : cc1plus: note: obsolete option -I- used, please use -iquote instead : ../threads/thread.cc: In member function : 'void Thread::Fork(void (*)(void*), void*)': : ../threads/thread.cc:98: error: : cast from 'void (*)(void*)' to 'int' loses precision : ../threads/thread.cc: In member function : 'void Thread::StackAllocate(void (*)(void*), void*)': : ../threads/thread.cc:345: : error: cast from 'void (*)()' to 'int' loses precision : ../threads/thread.cc: In member function : 'void Thread::SelfTest()': : ../threads/thread.cc:430: : warning: deprecated conversion from string constant to : 'char*' : make: *** [thread.o] Error 1 : 請問thread.cc到底怎麼了 有沒有人有可以work的版本呢?? -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.112.250.217