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