raptor85,
@raptor85@mastodon.gamedev.place avatar

@stungeye yes, in sdl1 and sdl2 linking to sdl2main is required, though it's generally provided as a static library (sdl2main.a), most compilers should auto resolve the correct file to use with the linker settings -lSDL2 and -lSDL2main.

SDL actually provides a tool, sdl2-config you can execute with "sdl2-config --libs" and "sdl2-config --cflags" to get the correct settings for your system, most ide's/compilers can use this directly but iirc visual studio you have to copy the output.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • gamedev
  • DreamBathrooms
  • mdbf
  • ethstaker
  • magazineikmin
  • cubers
  • rosin
  • thenastyranch
  • Youngstown
  • osvaldo12
  • slotface
  • khanakhh
  • kavyap
  • InstantRegret
  • Durango
  • JUstTest
  • everett
  • tacticalgear
  • modclub
  • anitta
  • cisconetworking
  • tester
  • ngwrru68w68
  • GTA5RPClips
  • normalnudes
  • megavids
  • Leos
  • provamag3
  • lostlight
  • All magazines