MinGW-w64, multiple definition of `main' |
KyleN
|
I've uploaded my CMakeLists.txt, FindSDL2.cmake, code and build log here: https://gist.github.com/anonymous/f2fb82822908f11bf338
I'm trying to compile a simple program with MinGW, but I'm getting errors. I don't know if I'm linking SDL2 incorrectly, or if it's something else. I'm using this version of MinGW-w64: x86_64-4.9.1-posix-seh-rt_v3-rev1.7 What's peculiar, however, is the error message that CLion spits back at me:
It says there are multiple definitions of main, even though there's only 1 in my code. I know SDL2 provides a main function, which is probably why the compiler quits on me. Can anyone help me out with this? |
|||||||||||||
|