nachos 설치중 문제가 발생했어요.
래드햇리눅스 4.0 AS2 버전 사용 중인데요
다른건 다 됐는데 마지막 Nachos 설치중 에러 발생하네요
고수님들 답변 부탁드립니다.
[root@localhost threads]# make depend
g++ -I../lib -I../threads -I../machine -DTHREADS -Dx86 -DLINUX -DCHANGED -M ../lib/bitmap.cc ../lib/debug.cc ../lib/hash.cc ../lib/libtest.cc ../lib/list.cc ../lib/sysdep.cc ../machine/interrupt.cc ../machine/stats.cc ../machine/timer.cc ../threads/alarm.cc ../threads/kernel.cc ../threads/main.cc ../threads/scheduler.cc ../threads/synch.cc ../threads/synchlist.cc ../threads/thread.cc ../machine/elevatortest.cc ../machine/elevator.cc > makedep
echo '/^# DO NOT DELETE THIS LINE/+2,$d' >eddep
echo '$r makedep' >>eddep
echo 'w' >>eddep
echo 'q' >>eddep
ed - Makefile < eddep
rm eddep makedep
echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
echo '# see make depend above' >> Makefile
[root@localhost threads]# make
g++ -g -Wall -fwritable-strings -I../lib -I../threads -I../machine -DTHREADS -Dx86 -DLINUX -DCHANGED -c ../lib/libtest.cc
cc1plus: note: -fwritable-strings is deprecated; see documentation for details
In file included from /usr/lib/gcc/i386-redhat-linux/3.4.4/../../../../include/c++/3.4.4/backward/iostream.h:31,
from ../lib/sysdep.h:15,
from ../lib/debug.h:18,
from ../lib/list.h:17,
from ../lib/libtest.cc:12:
/usr/lib/gcc/i386-redhat-linux/3.4.4/../../../../include/c++/3.4.4/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the header for the header for C++ includes, or instead of the deprecated header . To disable this warning use -Wno-deprecated.
In file included from ../lib/list.h:140,
from ../lib/libtest.cc:12:
../lib/list.cc: In member function `void SortedList::Insert(T)':
../lib/list.cc:238: error: there are no arguments to `IsEmpty' that depend on a template parameter, so a declaration of `IsEmpty' must be available
../lib/list.cc:238: error: (if you use `-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
../lib/list.cc:239: error: `first' undeclared (first use this function)
../lib/list.cc:239: error: (Each undeclared identifier is reported only once for each function it appears in.)
../lib/list.cc:240: error: `last' undeclared (first use this function)
../lib/list.cc:249: error: `numInList' undeclared (first use this function)
../lib/list.cc: In member function `void SortedList::SanityCheck() const':
../lib/list.cc:339: error: `first' undeclared (first use this function)
../lib/list.cc:339: error: `last' undeclared (first use this function)
../lib/list.cc: In member function `void SortedList::SelfTest(T*, int)':
../lib/list.cc:369: error: there are no arguments to `RemoveFront' that depend on a template parameter, so a declaration of `RemoveFront' must be available
../lib/list.cc:372: error: there are no arguments to `IsEmpty' that depend on a template parameter, so a declaration of `IsEmpty' must be available
make: *** [libtest.o] 오류 1


댓글 달기