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

Comment by HolyBlackCat on undefined reference to `WinMain@16' in openGL C

$
0
0
What tutorial are you using? You need -lmingw32 -lSDL2main -lSDL2 (in this order), not just -lSDL2. This is likely what you're missing. Also an obligatory reminder that your GCC is outdated (6, while latest is 14). You can get the latest one from MSYS2.

Viewing all articles
Browse latest Browse all 1350

Trending Articles



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