Quantcast
Channel: User HolyBlackCat - Stack Overflow
Viewing all articles
Browse latest Browse all 1356

Comment by HolyBlackCat on Linker can't find mingw64 library?

$
0
0
Don't confuse MinGW and GCC. MinGW is specifically a version of GCC for Windows. -lmingw64 -lSDL2main -lSDL2 is wrong. On MinGW you'd use -lmingw32 -lSDL2main -lSDL2 (even on 64 bit), but on Linux, you only need -lSDL2. You don't need to guess all this, run pkg-config --libs --cflags sdl2 and it will tell you the correct flags.

Viewing all articles
Browse latest Browse all 1356

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>