Bonfo
27-01-2007, 16:02
Sto veramente scocomerando !!! :muro: :muro: :muro:
Non riesco a linkare con glut32.lib
Mi sono basato su questo link:
http://www.mingw.org/MinGWiki/index.php/Glut?PHPSESSID=54cdd9e3099a2a6b87d403eed
Ecco la linea che uso:
gcc -D_STDCALL_SUPPORTED -D_M_IX86 -o modelViewer.exe model_viewer.c glu
t32.lib -lopengl32 -lglu32
ma continuo ad avere questi problemi:
C:/Profiles/Valerio/LOCALS~1/Temp/cc8ibaaa.o(.text+0x1c):model_viewer.c: undefined reference to `__glutInitWithExit@12'
C:/Profiles/Valerio/LOCALS~1/Temp/cc8ibaaa.o(.text+0x3c):model_viewer.c: undefined reference to `__glutCreateWindowWithExit@8'
C:/Profiles/Valerio/LOCALS~1/Temp/cc8ibaaa.o(.text+0x5c):model_viewer.c: undefined reference to `__glutCreateMenuWithExit@8'
C:/Profiles/Valerio/LOCALS~1/Temp/cc8ibaaa.o(.text+0xd3):model_viewer.c: undefined reference to `glutSwapBuffers@0'
C:/Profiles/Valerio/LOCALS~1/Temp/cc8ibaaa.o(.text+0xe0):model_viewer.c: undefined reference to `glutPostRedisplay@0'
C:/Profiles/Valerio/LOCALS~1/Temp/cc8ibaaa.o(.text+0x511):model_viewer.c: undefined reference to `glutInitDisplayMode@4'
C:/Profiles/Valerio/LOCALS~1/Temp/cc8ibaaa.o(.text+0x528):model_viewer.c: undefined reference to `glutInitWindowSize@8'
C:/Profiles/Valerio/LOCALS~1/Temp/cc8ibaaa.o(.text+0x546):model_viewer.c: undefined reference to `glutDisplayFunc@4'
C:/Profiles/Valerio/LOCALS~1/Temp/cc8ibaaa.o(.text+0x555):model_viewer.c: undefined reference to `glutIdleFunc@4'
C:/Profiles/Valerio/LOCALS~1/Temp/cc8ibaaa.o(.text+0x5b7):model_viewer.c: undefined reference to `glutMainLoop@0'
collect2: ld returned 1 exit status
I file delle GLUT (l' header file, il .lib, il .def e la .dll) sono tutti nella stessa cartella dove c'e' il file sorgente.
Non so piu' cosa provare :muro: :muro: :muro:
:help:
Non riesco a linkare con glut32.lib
Mi sono basato su questo link:
http://www.mingw.org/MinGWiki/index.php/Glut?PHPSESSID=54cdd9e3099a2a6b87d403eed
Ecco la linea che uso:
gcc -D_STDCALL_SUPPORTED -D_M_IX86 -o modelViewer.exe model_viewer.c glu
t32.lib -lopengl32 -lglu32
ma continuo ad avere questi problemi:
C:/Profiles/Valerio/LOCALS~1/Temp/cc8ibaaa.o(.text+0x1c):model_viewer.c: undefined reference to `__glutInitWithExit@12'
C:/Profiles/Valerio/LOCALS~1/Temp/cc8ibaaa.o(.text+0x3c):model_viewer.c: undefined reference to `__glutCreateWindowWithExit@8'
C:/Profiles/Valerio/LOCALS~1/Temp/cc8ibaaa.o(.text+0x5c):model_viewer.c: undefined reference to `__glutCreateMenuWithExit@8'
C:/Profiles/Valerio/LOCALS~1/Temp/cc8ibaaa.o(.text+0xd3):model_viewer.c: undefined reference to `glutSwapBuffers@0'
C:/Profiles/Valerio/LOCALS~1/Temp/cc8ibaaa.o(.text+0xe0):model_viewer.c: undefined reference to `glutPostRedisplay@0'
C:/Profiles/Valerio/LOCALS~1/Temp/cc8ibaaa.o(.text+0x511):model_viewer.c: undefined reference to `glutInitDisplayMode@4'
C:/Profiles/Valerio/LOCALS~1/Temp/cc8ibaaa.o(.text+0x528):model_viewer.c: undefined reference to `glutInitWindowSize@8'
C:/Profiles/Valerio/LOCALS~1/Temp/cc8ibaaa.o(.text+0x546):model_viewer.c: undefined reference to `glutDisplayFunc@4'
C:/Profiles/Valerio/LOCALS~1/Temp/cc8ibaaa.o(.text+0x555):model_viewer.c: undefined reference to `glutIdleFunc@4'
C:/Profiles/Valerio/LOCALS~1/Temp/cc8ibaaa.o(.text+0x5b7):model_viewer.c: undefined reference to `glutMainLoop@0'
collect2: ld returned 1 exit status
I file delle GLUT (l' header file, il .lib, il .def e la .dll) sono tutti nella stessa cartella dove c'e' il file sorgente.
Non so piu' cosa provare :muro: :muro: :muro:
:help: