도와주세요!!
글 수 15,339
2003.10.22 14:01:54 (*.51.61.17)
6685
수고가 많으십니다.
다름이 아니라 마이크로 윈도우즈를 설치하고 예제 프로그램(hello)을 컴파일
하는데 계속해서 에러가 나서 도움을 요청합니다.
hello에 Makefile을 제 환경에 맞게 수정을 하고 강의 자료실에 있는 모듈을
다운받아 /usr/armv5l-linux/ 디렉토리에서 압축을 풀었습니다.
크로스 컴파일환경은 모두 rpm으로 설치를 마친 상태입니다.
(
armv5l-linux-binutils-2.13.90.0.16-ez1.i386.rpm
armv5l-linux-gcc-3.2.1-ez1.i386.rpm
armv5l-linux-gdb-5.3-ez1.i386.rpm
armv5l-linux-glibc-2.3.1-ez1.i386.rpm
libstdc++.tar.gz
microwindows-0.89pre8_arm_xscale.tar.gz
)
기본적으로 되어있는 데모프로그램들은 모두 잘 돌아갑니다.
하지만 자료실에 있는 hello 프로그램(emo라이브러리)은 컴파일이 안되는군
요..
환경설정까지 모두 끝냈는데요...
에러는
[root@devServer hello]# make clean
rm -rf helloprj.o tlist.o main.o hello core
[root@devServer hello]# make
C++ compiling helloprj.cc ...
armv5l-linux-g++ -c -DMWPIXEL_FORMAT=MWPF_TRUECOLOR565 -DLINUX=1 -
DUNIX=1 -DARM -I. -I/usr/armv5l-linux/include -I/usr/armv5l-
linux/include/m
icrowin -I../arminclude -Wall -O2 -o helloprj.o helloprj.cc
C++ compiling tlist.cc ...
armv5l-linux-g++ -c -DMWPIXEL_FORMAT=MWPF_TRUECOLOR565 -DLINUX=1 -
DUNIX=1 -DARM -I. -I/usr/armv5l-linux/include -I/usr/armv5l-
linux/include/m
icrowin -I../arminclude -Wall -O2 -o tlist.o tlist.cc
C++ compiling main.cc ...
armv5l-linux-g++ -c -DMWPIXEL_FORMAT=MWPF_TRUECOLOR565 -DLINUX=1 -
DUNIX=1 -DARM -I. -I/usr/armv5l-linux/include -I/usr/armv5l-
linux/include/m
icrowin -I../arminclude -Wall -O2 -o main.o main.cc
armv5l-linux-gcc -DMWPIXEL_FORMAT=MWPF_TRUECOLOR565 -DLINUX=1 -DUNIX=1 -
DARM -I. -I/usr/armv5l-linux/include -I/usr/armv5l-
linux/include/microwin -I../arminclude -Wall -O2 -L/usr/armv5l-
linux/lib -L../armlib helloprj.o tlist.o main.o -o hello -lstdc++ -
lmwin -lmwinlib -lmwengine -lmwdrivers -lmwfonts -lmwin -lm -
lemo /usr/lib/gcc-lib/armv5l-linux/3.2.1/../../../../armv5l-
linux/bin/ld: warning: libgcc_s.so.1, needed by /usr/armv5l-
linux/lib/libstdc++.so, not found (try using -rpath or -rpath-link)
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`_Unwind_DeleteException@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`_Unwind_GetRegionStart@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`_Unwind_SjLj_Resume@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`__udivsi3@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`_Unwind_GetDataRelBase@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`_Unwind_SetGR@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`__divsi3@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`_Unwind_GetLanguageSpecificData@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`_Unwind_GetIP@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`_Unwind_SjLj_Register@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`_Unwind_SjLj_RaiseException@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`_Unwind_SjLj_Unregister@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`_Unwind_GetTextRelBase@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`_Unwind_SetIP@GCC_3.0'
collect2: ld returned 1 exit status
make: *** [hello] 오류 1
다름이 아니라 마이크로 윈도우즈를 설치하고 예제 프로그램(hello)을 컴파일
하는데 계속해서 에러가 나서 도움을 요청합니다.
hello에 Makefile을 제 환경에 맞게 수정을 하고 강의 자료실에 있는 모듈을
다운받아 /usr/armv5l-linux/ 디렉토리에서 압축을 풀었습니다.
크로스 컴파일환경은 모두 rpm으로 설치를 마친 상태입니다.
(
armv5l-linux-binutils-2.13.90.0.16-ez1.i386.rpm
armv5l-linux-gcc-3.2.1-ez1.i386.rpm
armv5l-linux-gdb-5.3-ez1.i386.rpm
armv5l-linux-glibc-2.3.1-ez1.i386.rpm
libstdc++.tar.gz
microwindows-0.89pre8_arm_xscale.tar.gz
)
기본적으로 되어있는 데모프로그램들은 모두 잘 돌아갑니다.
하지만 자료실에 있는 hello 프로그램(emo라이브러리)은 컴파일이 안되는군
요..
환경설정까지 모두 끝냈는데요...
에러는
[root@devServer hello]# make clean
rm -rf helloprj.o tlist.o main.o hello core
[root@devServer hello]# make
C++ compiling helloprj.cc ...
armv5l-linux-g++ -c -DMWPIXEL_FORMAT=MWPF_TRUECOLOR565 -DLINUX=1 -
DUNIX=1 -DARM -I. -I/usr/armv5l-linux/include -I/usr/armv5l-
linux/include/m
icrowin -I../arminclude -Wall -O2 -o helloprj.o helloprj.cc
C++ compiling tlist.cc ...
armv5l-linux-g++ -c -DMWPIXEL_FORMAT=MWPF_TRUECOLOR565 -DLINUX=1 -
DUNIX=1 -DARM -I. -I/usr/armv5l-linux/include -I/usr/armv5l-
linux/include/m
icrowin -I../arminclude -Wall -O2 -o tlist.o tlist.cc
C++ compiling main.cc ...
armv5l-linux-g++ -c -DMWPIXEL_FORMAT=MWPF_TRUECOLOR565 -DLINUX=1 -
DUNIX=1 -DARM -I. -I/usr/armv5l-linux/include -I/usr/armv5l-
linux/include/m
icrowin -I../arminclude -Wall -O2 -o main.o main.cc
armv5l-linux-gcc -DMWPIXEL_FORMAT=MWPF_TRUECOLOR565 -DLINUX=1 -DUNIX=1 -
DARM -I. -I/usr/armv5l-linux/include -I/usr/armv5l-
linux/include/microwin -I../arminclude -Wall -O2 -L/usr/armv5l-
linux/lib -L../armlib helloprj.o tlist.o main.o -o hello -lstdc++ -
lmwin -lmwinlib -lmwengine -lmwdrivers -lmwfonts -lmwin -lm -
lemo /usr/lib/gcc-lib/armv5l-linux/3.2.1/../../../../armv5l-
linux/bin/ld: warning: libgcc_s.so.1, needed by /usr/armv5l-
linux/lib/libstdc++.so, not found (try using -rpath or -rpath-link)
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`_Unwind_DeleteException@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`_Unwind_GetRegionStart@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`_Unwind_SjLj_Resume@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`__udivsi3@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`_Unwind_GetDataRelBase@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`_Unwind_SetGR@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`__divsi3@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`_Unwind_GetLanguageSpecificData@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`_Unwind_GetIP@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`_Unwind_SjLj_Register@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`_Unwind_SjLj_RaiseException@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`_Unwind_SjLj_Unregister@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`_Unwind_GetTextRelBase@GCC_3.0'
/usr/armv5l-linux/lib/libstdc++.so: undefined reference to
`_Unwind_SetIP@GCC_3.0'
collect2: ld returned 1 exit status
make: *** [hello] 오류 1