Re: printf: doens't print on WinXP installation

Richard Frith-Macdonald <[email protected]> Fri, 23 Oct 2009 15:50:13 +0100
Newsgroups gmane.comp.lib.gnustep.user
Message-ID <[email protected]>
On 23 Oct 2009, at 15:44, Adam Fedor wrote:

> Oh, yes - you are trying to compile this as an Application.  In that  
> case, GNUstep adds some special flags to keep Windows from trying to  
> output stuff to a command window.

But on my system, I was able to build exactly that program and with  
that makefile (ie as an app) and launch the resulting app using  
'openapp', and it still printed 'hello world'

Perhaps some setting I made in the past has changed windows' behavior  
to always print to stdout though.

>  If you really want to see the output of printf, you'll have to  
> compile it as a tool:
>
> TOOL_NAME=HelloWorld
> include $(GNUSTEP_MAKEFILES)/tool.make
>
> or you could use NSLog (but that goes to the Windows system log  
> unless you are using gdb).
>
>
> On