Hello, I have installed my include files and .dlls (I believe), but I am still receiving these errors when I try to compile:
Compiler: Default compiler
Executing gcc.exe...
gcc.exe 'C:UsersdrewtobyDesktopcube.c' -o 'C:UsersdrewtobyDesktopcube.exe' -ansi -traditional-cpp -I'C:Dev-Cppinclude' -L'C:Dev-Cpplib'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0x1c):cube.c: undefined reference to `__glutInitWithExit@12'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0x3c):cube.c: undefined reference to `__glutCreateWindowWithExit@8'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0x5c):cube.c: undefined reference to `__glutCreateMenuWithExit@8'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0x86):cube.c: undefined reference to `_imp__glBegin@4'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0xa4):cube.c: undefined reference to `_imp__glNormal3fv@4'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0xcb):cube.c: undefined reference to `_imp__glVertex3fv@4'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0xf2):cube.c: undefined reference to `_imp__glVertex3fv@4'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0x119):cube.c: undefined reference to `_imp__glVertex3fv@4'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0x140):cube.c: undefined reference to `_imp__glVertex3fv@4'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0x14a):cube.c: undefined reference to `_imp__glEnd@0'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0x16a):cube.c: undefined reference to `_imp__glClear@4'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0x179):cube.c: undefined reference to `glutSwapBuffers@0'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0x233):cube.c: undefined reference to `_imp__glLightfv@12'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0x254):cube.c: undefined reference to `_imp__glLightfv@12'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0x265):cube.c: undefined reference to `_imp__glEnable@4'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0x276):cube.c: undefined reference to `_imp__glEnable@4'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0x287):cube.c: undefined reference to `_imp__glEnable@4'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0x298):cube.c: undefined reference to `_imp__glMatrixMode@4'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0x2c1):cube.c: undefined reference to `_imp__gluPerspective@32'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0x2d2):cube.c: undefined reference to `_imp__glMatrixMode@4'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0x315):cube.c: undefined reference to `_imp__gluLookAt@72'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0x339):cube.c: undefined reference to `_imp__glTranslatef@12'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0x366):cube.c: undefined reference to `_imp__glRotatef@16'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0x393):cube.c: undefined reference to `_imp__glRotatef@16'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0x3e5):cube.c: undefined reference to `glutInitDisplayMode@4'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0x403):cube.c: undefined reference to `glutDisplayFunc@4'
C:UsersdrewtobyAppDataLocalTemp/ccMJaaaa.o(.text+0x410):cube.c: undefined reference to `glutMainLoop@0'
collect2: ld returned 1 exit status
Execution terminated
from code:
What can I do to get the compiler to recognize the commands?! Thanks!!!!
Alternatively you can download a Hello GLUT source release. You are also encouraged to visit that link to star and watch the repository if you find it useful. Freeglut 3.0.0 MSVC Package. This package contains 32 and 64 bit Windows DLLs, import libraries, and header files, allowing freeglut applications to be written using Microsoft’s Visual C. Mar 17, 2019 open the glew-1.9.0 folder in the zip file and paste all its contents into the dev-c main directory. Then copy the glew32.dll file in the bin folder to your%systemroot% (this directory changes based on what version of windows you’re using, for windows 7 its “Windows”). To find your systemroot press “windows key + r” then type.
Glut C++ Tutorial
Download Glut.h For Dev C++
- Jan 04, 2015 how to install glut. Closed account Error GL/freeglut.h: No such file or directory. You have to also tell dev c where the GL folder is. You might try searching your hard drive for any files named iostream. This would be a place filled with other include files. If you put the GL folder in there then dev c should already be able to find it.
- May 17, 2011 But here is a link which explain on how to install GLUT and setup the linker options. Dev-C & OpenGL And also you will need to add an extra path to the GL include. You could do that by clicking on Tools - Compiler Options - Directories tab - and here add a path to the GL include folder. Normally it is C:Dev-CppincludeGL ssharish.