14

I installed glew, glfw and glm in eclipse cdt(c++) with the gcc/mingw, all statically. All works fine, but I don't like the warning in the output console of eclipse:

Warning: corrupt .drectve at end of def file

How I can fix and hide this warning ? What does it mean ?

And what I noticed is, that this warning comes only, if I call the 'glewInit' function.

Nicol Bolas
  • 449,505
  • 63
  • 781
  • 982
user3325226
  • 329
  • 2
  • 5
  • 10

3 Answers3

11

When I ran into this problem it was because I was linking against incompatible MSVC libs. A comment by keltar helped me through this problem.

SDL 2.0: linking error

Community
  • 1
  • 1
Ronald Weidner
  • 690
  • 5
  • 15
7

The message

Warning: corrupt .drectve at end of def file

could also mean, that the project is being built with MinGW but the library it uses is created for Visual Studio.

MinGW and Visual Studio builds are not interchangeable.

Tsyvarev
  • 60,011
  • 17
  • 110
  • 153
1

I had this error in CLion for MinGW toolchain, but when I switched to VisualStudio toolchain, it disappeared.

Bohdan Pysko
  • 11
  • 1
  • 1