This is, I think, a complex problem I'm having. I'm just trying to set up a basic SDL project, I'm actually following this tutorial: http://lazyfoo.net/tutorials/SDL/01_hello_SDL/index2.php
Here is the full build log.
||=== Build: Debug in Drekirokr (compiler: GNU GCC Compiler) ===|
||Warning: corrupt .drectve at end of def file|
||error: ld returned 1 exit status|
||=== Build failed: 1 error(s), 1 warning(s) (0 minute(s), 0 second(s)) ===|
As you can see, it trows me there is an error, but there is nothing as far as I can understand. Of course the ld returned 1 exit status is an error, but I've searched for the line elsewhere, and it always has some other error, like a typo in a class name reference or something, and for them I think things get solved by solving that other error. The other line, corrupt .drective at end of def file, people having this log seem to be able to compile just fine. In my case, I can't. I've tried compiling anything else, and I've successfully compiled a "hello world" that uses only stdio.h for printf.
Here is my code
#include <SDL.h>
#include <stdio.h>
int main( int argc, char* args[] ) {
return 0;
}
I've added the search directories and the linker options. I just can't figure what's wrong.
Thanks in advance.