0

The compiler throws errors like:

"   [Linker error] main.o:main.cpp:(.text+0x972): undefined reference to `_imp__glutReshapeFunc@4' "

Do you know how to use GLUT in Dev C++?

Ciro Santilli OurBigBook.com
  • 347,512
  • 102
  • 1,199
  • 985
deem
  • 1,844
  • 4
  • 20
  • 36

1 Answers1

2

DevC++ is seriously outdated. I recommend using Codeblocks instead.

The error line you quoted simply indicated, that the linker is missing the functions of the GLUT library. Including the headers is not enough (they just provide the compiler with sort of an index). But the linker still needs to be told which libraries to actually link against.

datenwolf
  • 159,371
  • 13
  • 185
  • 298