L
L
lexaxaxa2014-10-06 20:52:11
C++ / C#
lexaxaxa, 2014-10-06 20:52:11

How to connect glut in Dev ccp on windows7 64-bit?

Hello! Stupid problem: the linker in dev ccp always writes that an undefined reference to.... to one or another function that is in glut.h and in the code. It seems that the files glut.h, glut32.lib and glut32.dill are in the same directories as their "graphic counterparts" from Opengl, with the help of which graphics are displayed without problems. Links for the linker are set automatically when you select the type of project (Glut), like the Opengl project, which is successfully launched. I wonder what is the root of evil? On the Opengl site, I only found instructions that apply to IRIX 6.1. Can they be applied to Windows 7*64 and how?
To build the N32 or N64 GLUT libraries, do the following:
1) Make sure you are running IRIX 6.1 or later.
2) Make sure you have the correct compiler, X11, and OpenGL development
environment installed for the object style library version you wish
to generate.
3) Run "mkmkfiles.sgi" in this directory.
4) Make sure you have built the "lib/glut" directory. Example:
(cd lib/glut; make)
5) Change to one of the N32 or N64 GLUT library directories,
depending on what "object style" you wish to build:
N64 (new 64-bit ABI) - "cd lib/glut .n64"
N32 (new 32-bit ABI) - "cd lib/glut.n32"
6) Execute "make" in the directory.
INSTALLATION
=============
If you want to install the resulting archives into the right system
library directories, do the following:
FOR N32: cp lib/glut.n32/libglut.a /usr/lib32
FOR N64: cp lib/glut.n64/libglut.a /usr/lib64
- Mark Kilgard

Answer the question

In order to leave comments, you need to log in

2 answer(s)
E
EXL, 2014-10-07
@EXL

Let's take a closer look at your question.
Firstly, you are using rather outdated tools. This primarily concerns Dev-Cpp and the GLUT library.
Secondly, most likely you downloaded the GLUT library for Windows under the MSVC ++ compiler, while Dev-Cpp uses the gcc compiler from the MinGW kit. From here, nothing works.
I advise you to use modern development tools, such as MS Visual Studio or Qt Creator (the link is the official Bundle, which includes everything you need to develop applications for Windows).
In addition, instead of GLUT, it is best to use the modern freeglut library.
If you choose Qt Creator, then I will compile freeglut under Windows 7 64-bit and tell you how to set up and run the project so that everything works. Tap on contacts in profile.

L
lexaxaxa, 2014-10-07
@lexaxaxa

Thanks for the competent answer. Tell me, are there any good sources, Russian or English, for mastering opengl, with code examples that contain freeglut functions, like Baker's book. Computer graphics and the Opengl standard, where examples can't do without glut?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question