glut

Das Forum fĂĽr Programmierer und Systemadmins. Von Shell-, Perl- und PHP-Scripts bis zur objektorientierten Programmierung mit C++.

glut

Beitragvon Woolf » Di 23 Jul, 2002 20:02

<HTML>so jetz hab ich glut und das tut von nehe irgendwie angeguckt das leider fĂĽr glut unter MACOS is...
Das gibt KDevelope aus (Slackware 8.1, KDevelope 2.1)

gmake all-recursive
gmake[1]: Entering directory `/root/gluttest'
Making all in gluttest
gmake[2]: Entering directory `/root/gluttest/gluttest'
/bin/sh ../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -O0 -g3 -Wall -fno-exceptions -fno-check-new -o gluttest main.o
main.o: In function `InitGL(void)':
/root/gluttest/gluttest/main.cpp:119: undefined reference to `glClear'
/root/gluttest/gluttest/main.cpp:120: undefined reference to `glLoadIdentity'
main.o: In function `main':
/root/gluttest/gluttest/main.cpp:128: undefined reference to `glutInit'
/root/gluttest/gluttest/main.cpp:129: undefined reference to `glutInitDisplayMode'
/root/gluttest/gluttest/main.cpp:130: undefined reference to `glutInitWindowSize'
/root/gluttest/gluttest/main.cpp:131: undefined reference to `glutInitWindowPosition'
/root/gluttest/gluttest/main.cpp:133: undefined reference to `glutCreateWindow'
/root/gluttest/gluttest/main.cpp:136: undefined reference to `DrawGLScene(void)'
/root/gluttest/gluttest/main.cpp:136: undefined reference to `glutDisplayFunc'
/root/gluttest/gluttest/main.cpp:138: undefined reference to `ReSizeGLScene(int, int)'
/root/gluttest/gluttest/main.cpp:138: undefined reference to `glutReshapeFunc'
/root/gluttest/gluttest/main.cpp:139: undefined reference to `glutMainLoop'
collect2: ld returned 1 exit status
gmake[2]: Leaving directory `/root/gluttest/gluttest'
gmake[2]: *** [gluttest] Error 1
gmake[1]: Leaving directory `/root/gluttest'
gmake[1]: *** [all-recursive] Error 1
gmake: *** [all] Error 2
*** failed *** </HTML>
Woolf
 

RE: glut

Beitragvon mad » Di 23 Jul, 2002 20:55

> /bin/sh ../libtool --silent --mode=link --tag=CXX g++ -Wnon-virtual-dtor -Wno-long-long -Wbad-function-cast -Wundef -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -O2 -O0 -g3 -Wall -fno-exceptions -fno-check-new -o gluttest main.o

entweder ich sehs nicht, oder hier fehlt ein -lglut (fuer dynamisches linken mit der
libglut.so) oder ein libglut.a (fuer statisches linken)

mfg,
mad.
mad
 

RE: glut

Beitragvon Woolf » Mi 24 Jul, 2002 17:46

aha ?!?!?!!!!

kann ich das da auch mit
#pragma comment(lib, "lglut");

machen?
Woolf
 

RE: glut

Beitragvon Woolf » Mi 24 Jul, 2002 18:01

mist, kein glut.so,
..--< :(!!! hab nach make linux, das make und make install vergessen, zzzzz
Woolf
 


ZurĂĽck zu PROGRAMMIER FORUM

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 21 Gäste