elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: Tutorial básico de Quickjs


+  Foro de elhacker.net
|-+  Programación
| |-+  Programación C/C++ (Moderadores: Eternal Idol, Littlehorse, K-YreX)
| | |-+  Problema OpenGL y glut.h (Libreria)
0 Usuarios y 1 Visitante están viendo este tema.
Páginas: [1] Ir Abajo Respuesta Imprimir
Autor Tema: Problema OpenGL y glut.h (Libreria)  (Leído 5,452 veces)
totolia

Desconectado Desconectado

Mensajes: 10


Ver Perfil
Problema OpenGL y glut.h (Libreria)
« en: 13 Mayo 2012, 20:41 pm »

Hola verán, me estoy volviendo realmente loco buscando un error que estoy seguro que es sencillo de solucionar. Estoy usando CodeBlocks para programar en OpenGL pero no consigo hacer include de la libreria glut.h y me salen los siguientes errores:
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\GL\glut.h|486|undefined reference to `__glutInitWithExit'| linea 486 undefined reference to '__glutInitWithExit'
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\GL\glut.h|503|undefined reference to `__glutCreateWindowWithExit'| linea 503 undefined reference to '__glutCreateMenuWithExit'
c:\program files (x86)\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\GL\glut.h|549|undefined reference to `__glutCreateMenuWithExit'| linea 549 undefined reference to '__glutCreateMenuWithExit'

Es un error de configurar mal el codeblocks? O tengo mal puesta la librería. Gracias.


En línea

totolia

Desconectado Desconectado

Mensajes: 10


Ver Perfil
Re: Problema OpenGL y glut.h (Libreria)
« Respuesta #1 en: 13 Mayo 2012, 20:50 pm »

Pues para quien haya tenido problemas, con algo parecido, que añada el #include <windows.h> encima del todo. Y luego es muy posible que el glut.dll este dañado que pase por aquí: http://www.dll-files.com/dllindex/dll-files.shtml?glut32

Ami me funciono.


En línea

Páginas: [1] Ir Arriba Respuesta Imprimir 

Ir a:  

Mensajes similares
Asunto Iniciado por Respuestas Vistas Último mensaje
Problema con OpenGL en Enemy Territory
Juegos y Consolas
Kasswed 5 4,249 Último mensaje 12 Marzo 2006, 09:38 am
por Kasswed
libreria para hacer gui's en opengl que nos ean para c++?
Programación C/C++
smasher666 1 2,494 Último mensaje 29 Abril 2010, 23:21 pm
por leogtz
como instalar la libreria "GL/glut.h"
Programación C/C++
mapers 3 12,609 Último mensaje 1 Junio 2010, 19:27 pm
por Foxy Rider
glut
Programación C/C++
mapers 0 2,175 Último mensaje 14 Septiembre 2010, 06:57 am
por mapers
Problema Dev c++ (glut) « 1 2 »
Programación C/C++
alexis33de 12 9,353 Último mensaje 8 Diciembre 2010, 23:31 pm
por alexis33de
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines