User forums > Help

SDL + console

(1/2) > >>

Fero:
hello. please reveal me, how can i make console SDL application using c::b ? console application is searching for winmain. how can i override it with sdl main? thanks a lot.

Zingam:
there is a template and last time I've used it it has done the job for me

Fero:
yes, but template is not console app. i wish to understand, how things work. how can i set-up console app + sdl in c::b ? thanks.

thomas:
Right-click on the project, select "Properties", and in the "Targets" tab, select "Console Application" for the value "Type" (top right corner).

Fero:
thanks, ive done it before. but when i printf something to stdout, it writes to file (stdout.txt) instead of console.

Navigation

[0] Message Index

[#] Next page

Go to full version