SDL doesn't compile in native enviroment
问题 I'm trying to compile this piece of code with SDL #include <SDL.h> int main(int argc, char * argv[]){ return 0; } The file itself compiles fine with g++ -c main.cpp -ISDL/include But compiling with following command in cygwin using g++ g++ -o test main.o -lSDL2 -lSDL2main -L SDL/lib/x64 produces this huge error... it seems to me like a problem of SDL itself... $ g++ -o test main.o -lSDL2 -lSDL2main -L SDL/lib/x64 Warning: corrupt .drectve at end of def file SDL/lib/x64/SDL2main.lib(./x64