Skip to content
Advertisement

Error while trying to compile an c++ sdl2 program with mingw

Basically, when I’m trying to compile my program for windows on linux, I get such an error:

JavaScript

My main function starts like this:

JavaScript

My compiling script looks like this:

JavaScript

And this is my file structure:

JavaScript

Any clues on why can’t I compile it?

Advertisement

Answer

Oh, okay I was just dumb, didn’t pass the name of main.cpp to the compiler.

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement