LinuxFreeBSD

[알림판목록 I] [알림판목록 II] [글목록][이 전][다 음]
[ LinuxFreeBSD ] in KIDS
글 쓴 이(By): burp (spider)
날 짜 (Date): 1999년 6월 17일 목요일 오후 05시 06분 37초
제 목(Title): [Q]Mesa+lesstif?


다음은 motif(실은 lesstif)와 OpenGL(실은 Mesa3.0)를 사용한 프로그램입니다.
컴파일시 다음과 같은 에러가 나는데 이것은 Mesa가 OpenGL을 완전히 호환하지 
않기 때문입니까 아니면 컴파일시 디렉토리 설정이 잘 못되서 입니까?
미리 감사드립니다.


make -k 
cc -c glw.c -I/usr/X11R6/include
gcc glw.o -o glw -lMesaGLw -lMesaGLU -lMesaGL -L/usr/X11R6/lib -lXm -lXt -lXmu 
-lXext -lX11
glw.o: In function `main':
glw.o(.text+0x195): undefined reference to `glwMDrawingAreaWidgetClass'
/usr/lib/libMesaGL.so: undefined reference to `log'
/usr/lib/libMesaGL.so: undefined reference to `floor'
/usr/lib/libMesaGL.so: undefined reference to `pow'
/usr/lib/libMesaGL.so: undefined reference to `exp'
/usr/lib/libMesaGLU.so: undefined reference to `tan'
collect2: ld returned 1 exit status
make: *** [glw] Error 1


Makefile -------------------------------------------

glw : glw.o
gcc glw.o -o glw -lMesaGLw -lMesaGLU -lMesaGL -L/usr/X11R6/lib -lXm -lXt 
-lXmu -lXext -lX11

glw.o : glw.c
cc -c glw.c -I/usr/X11R6/include

clean:
-rm -f *.o
-rm glw

 
[알림판목록 I] [알림판목록 II] [글 목록][이 전][다 음]
키 즈 는 열 린 사 람 들 의 모 임 입 니 다.