Re: An error when using SDL in C

@5
Ok, the docs on the command prompt aren't powershell.  Powershell is it's own unique thing.  Windows has two shells now, and they actually introduced some support for Powershell here.

VSCode is just an ultra-powerful text editor. I brought it up because you mentioned it first, so I thought you were using it.  But since ultra-powerful ends at only Windows C/C++ debugger that's fully accessible and doesn't suck, there you go.  Unfortunately it has a word navigation bug that they can't fix because Chromium stuff, but you can get used to that.

I have applied my Google magic (which you shouldn't feel bad about, since quickly finding this info requires knowing exactly what to look for).  SDL is introducing a main function between you and the OS, then redefining main in your program so that it can run it's function instead. You need to get the linking right for this to work.  I've got somenpossibly outdated docs saying you need to link to an sdl_main.lib.  Do you have that? If so, pass them to the compiler and I think this will just work for you.

-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Ethin via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector

Reply via email to