dev.gamez.lv Forum Index dev.gamez.lv
Latvian Game Developers Community
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups 

SDL console output

 
dev.gamez.lv Forum Index -> Iesācējiem
View previous topic :: View next topic  
Author Message
Tankists



Joined: 18 Dec 2006
Posts: 81
Location: Baldone

PostPosted: Sat Sep 20, 2008 3:09 pm    Post subject:

Vaitad, tev izmantojot SDL bija iespējams kautkādā veidā netikai uz ekrāna dabūt kautko, bet arī uz konsoles(piemēram debugingam)?
_________________
Getting used to problems...
Back to top
View user's profile Visit poster's website
bubu
Indago Uzvarētājs
Indago Uzvarētājs


Joined: 23 Mar 2004
Posts: 3223
Location: Riga

PostPosted: Sat Sep 20, 2008 3:14 pm    Post subject:

Jā, protams.
Vajag tikai projektu kompilēt norādot pareizo režīmu (konsoles vai GUI). GCC to dara ar -mwindows vs -mconsole argumentu linkerim. MSVC to dara ar /SUBSYSTEM:CONSOLE vs /SUBSYSTEM:WINDOWS linkerim.
Ja lieto GUI režīmu (-mwindows vai SUBSYSTEM:WINDOWS), tad viss stdout un stderr outputs iet uz attiecīgi stdout.txt un stderr.txt failiem, nevis konsoli.
Back to top
View user's profile Send e-mail
Display posts from previous:   
dev.gamez.lv Forum Index -> Iesācējiem All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group