nachos

    1熱度

    1回答

    我在Eclipse中運行時,玉米片,收到以下錯誤: Exception in thread "main" java.lang.Error: Unresolved compilation problem: at nachos.machine.Lib.assertTrue(Lib.java:75) at nachos.machine.Machine.main(Machine.ja

    0熱度

    1回答

    第一個問題:我想導入stdlib.h以便使用像malloc()和rand()這樣的函數。我正在threadtest.cc,文件夾線程中工作。這是我得到的錯誤 #include <stdlib.h> In file included from ../threads/threadtest.cc:18:0: /usr/include/stdlib.h:146:33: error: declarat

    -1熱度

    1回答

    我正在與一個玉米片的學校項目,我收到一些奇怪的錯誤。你可以看到我的代碼在這裏:just the c file, lemme know if you need more 從控制檯輸出看起來是這樣的: ../gnu/gcc -G 0 -c -I../userprog -I../threads -I../machine -c threadtest.c ../gnu/ld -T newscript -N

    0熱度

    4回答

    我有一個名爲KernelLock的類,我創建了一個名爲myLockArray的KernelLock數組。我聲明如下:KernelLock myLockArray[150]; 當我嘗試添加一個新的KernelLock myLockArray,我得到上述錯誤。這裏是確切的行我得到的錯誤: myLockArray[initializedLocksCounter] = new KernelLock(myA

    0熱度

    1回答

    class Producer { public: Producer(){ } void Shout(){ for(int i=0;i<10;i++){ printf("I am a producer!!\n"); } } }; void ThreadTest() { void (Producer::* ptfptr)() = &Pr

    0熱度

    1回答

    我收到此錯誤消息,但我似乎無法理解它。 ANSI C++禁止在賦值中隱式轉換`void *'是什麼意思? 。和叉功能只函數名和若干 螺紋::叉(VoidFunctionPtr FUNC,INT ARG) 錯誤消息: ../threads/threadtest.cc: In function `void ServerThread(int)': ../threads/threadtest.cc:72

    0熱度

    1回答

    我得到這個錯誤,我不知道如何解決它。請求構造函數採用字符串類型,我不認爲我在我的request.h文件中正確實現。 錯誤: Undefined first referenced symbol in file Request::Request(char *, int, int) threadtest.o ld: fatal: Symbol referencing errors. N

    0熱度

    1回答

    這是我的代碼: 無效playerproc(INT播放器) { switch(player) { case 1: move=(numSticks+4)%5; return move; break; case 2: srand(5); move=(rand()

    0熱度

    1回答

    我想在nachos操作系統中實現KThread.join()方法。我的示例代碼片段如下: private KThread toJoin = null; public void join() { Lib.debug(dbgThread, "Joining to thread: " + toString()); Lib.assertTrue(this != currentThread);

    1熱度

    1回答

    我在我的項目中包含了vsprintf。但是,當我編譯它時,我收到以下錯誤。 /opt/xgcc/decstation-ultrix/bin/xgcc -DIN_USER_MODE -c -I../userprog -I../threads -G 0 -Wall -O2 -DCHANGED -c vsprintf.c vsprintf.c:12: stdarg.h: No such file or