X
X
xXNullXx2019-05-01 17:24:38
Qt
xXNullXx, 2019-05-01 17:24:38

What causes errors when connecting glut?

I tried to include the "glut" library, but the following errors occur at the compilation stage: 1) C:\Users\voron\Documents\cb3d\LIBS\glut\GL\glut.h:487: error: undefined reference to `__imp___glutInitWithExit' 2) C :\Users\voron\Documents\cb3d\LIBS\glut\GL\glut.h:504: error: undefined reference to `__imp___glutCreateWindowWithExit' 3) C:\Users\voron\Documents\cb3d\LIBS\glut\GL\glut .h:550: error: undefined reference to `__imp___glutCreateMenuWithExit' 4) collect2.exe:-1: error: error: ld returned 1 exit status
5cc9abeda1b1e561651728.png#include <LIBS/glut/GL/glut.h>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Ananiev, 2019-05-02
@SaNNy32

You need to link the .lib file, not the .dll

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question