Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Warning: corrupt .drectve at end of def file

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.

like image 929
user3325226 Avatar asked Aug 06 '14 13:08

user3325226


3 Answers

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.

like image 151
Tsyvarev Avatar answered Nov 11 '22 19:11

Tsyvarev


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

like image 27
Ronald Weidner Avatar answered Nov 11 '22 19:11

Ronald Weidner


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

like image 32
Bohdan Pysko Avatar answered Nov 11 '22 20:11

Bohdan Pysko