[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: printf: doens't print on WinXP installation
From: |
jacksk58 |
Subject: |
Re: printf: doens't print on WinXP installation |
Date: |
Fri, 23 Oct 2009 07:36:53 -0700 (PDT) |
I changed the hello.m file to include your suggestion, still no / go.
I'm running this on an XP installation. I'm supplying - hello.m,
GNUmakefile and the text from the GNUStep Shell
Thanks
hello.m
===========
#include <stdio.h>
int main( int argc, const char *argv[] ) {
printf( "hello world\n" );
return 0;
}
GNUmakefile
==============
include $(GNUSTEP_MAKEFILES)/common.make
APP_NAME = HelloWorld
HelloWorld_OBJC_FILES = hello.m
include $(GNUSTEP_MAKEFILES)/application.make
GNUStep Shell 'Screen Shot'
========================
Setting up GNUstep Environment...
kj@CR ~
$ make
This is gnustep-make 2.2.0. Type 'make print-gnustep-make-help' for help.
Making all for app HelloWorld...
Creating HelloWorld.app/....
Compiling file hello.m ...
Linking app HelloWorld ...
Creating library file: ./HelloWorld.app/./HelloWorld.exe.a
Creating HelloWorld.app/Resources...
Creating stamp file...
Creating HelloWorld.app/Resources/Info-gnustep.plist...
Creating HelloWorld.app/Resources/HelloWorld.desktop...
kj@CR ~
$ openapp ./HelloWorld.app
kj@CR ~
$
Thanks
eduardo osorio armenta-2 wrote:
>
> try this:
>
> #include <stdio.h>
> instead of : #import <stdio.h>
>
> regards
>
> On Thu, Oct 22, 2009 at 9:23 PM, jacksk58 <jacksk58@hotmail.com> wrote:
>
>>
>> I'm runnuning this on an XP installation. I'm supplying - hello.m,
>> GNUmakefile and the text from the GNUStep Shell
>>
>> Thanks
>>
>> hello.m
>> ===========
>> #import <stdio.h>
>>
>> int main( int argc, const char *argv[] ) {
>> printf( "hello world\n" );
>>
>> return 0;
>> }
>>
>> GNUmakefile
>> ==============
>> include $(GNUSTEP_MAKEFILES)/common.make
>>
>> APP_NAME = HelloWorld
>> HelloWorld_OBJC_FILES = hello.m
>>
>> include $(GNUSTEP_MAKEFILES)/application.make
>>
>>
>> GNUStep Shell 'Screen Shot'
>> ========================
>> Setting up GNUstep Environment...
>>
>> kj@CR ~
>> $ make
>> This is gnustep-make 2.2.0. Type 'make print-gnustep-make-help' for help.
>> Making all for app HelloWorld...
>> Creating HelloWorld.app/....
>> Compiling file hello.m ...
>> Linking app HelloWorld ...
>> Creating library file: ./HelloWorld.app/./HelloWorld.exe.a
>> Creating HelloWorld.app/Resources...
>> Creating stamp file...
>> Creating HelloWorld.app/Resources/Info-gnustep.plist...
>> Creating HelloWorld.app/Resources/HelloWorld.desktop...
>>
>> kj@CR ~
>> $ openapp ./HelloWorld.app
>>
>> kj@CR ~
>> $
>>
>>
>>
>> Richard Frith-Macdonald-2 wrote:
>> >
>> >
>> > On 22 Oct 2009, at 00:52, jacksk58 wrote:
>> >
>> >>
>> >> I am running into the same problem as Alex Bilyk. -- "printf:
>> >> doens't print
>> >> on WinXP installation", when compiled by GNUmakefile. It works, when
>> >> compliled, without the makefile. I like compliling by GNUmakefiles.
>> >> Can
>> >> someone tell me why, printf("hello, world") doesn't work when
>> >> complied by
>> >> GNUmakefiles. I'm only curious about the problem with Printf.
>> >>
>> >> Thanks
>> >>
>> >>
>> >> Alex Bilyk wrote:
>> >>>
>> >>> Hi,
>> >>>
>> >>> Just installed GNUstep on Win XP. Doing the simplest of things with
>> >>> a main
>> >>> function that has printf("hello, world"); in it. Everything
>> >>> compiles and
>> >>> runs, except there is no output to the console. I can step through
>> >>> code in
>> >>> dgb and it goes over this line fine. A bit of a puzzle. Tried to use
>> >>> NSLog(@"..."); version - same result. App is built and run
>> >>> successfully,
>> >>> but with no printout to the console. Any ideas? BTW, stepping in
>> >>> gdb over
>> >>> the NSLog version has some issues that the printf version doesn't
>> >>> have,
>> >>> but that's a separate topic. I'm really after the printout at the
>> >>> moment,
>> >>> as you might imagine:)
>> >>>
>> >>> Thanks,
>> >
>> > I think it might help to have the code and the makefile to see if
>> > anyone can reproduce this ... printf works fine for me.
>> >
>> >
>> > _______________________________________________
>> > Help-gnustep mailing list
>> > Help-gnustep@gnu.org
>> > http://lists.gnu.org/mailman/listinfo/help-gnustep
>> >
>> >
>>
>> --
>> View this message in context:
>> http://www.nabble.com/printf%3A-doens%27t-print-on-WinXP-installation-tp25528385p26019875.html
>> Sent from the GNUstep - Help mailing list archive at Nabble.com.
>>
>>
>>
>> _______________________________________________
>> Help-gnustep mailing list
>> Help-gnustep@gnu.org
>> http://lists.gnu.org/mailman/listinfo/help-gnustep
>>
>
> _______________________________________________
> Help-gnustep mailing list
> Help-gnustep@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnustep
>
>
--
View this message in context:
http://www.nabble.com/printf%3A-doens%27t-print-on-WinXP-installation-tp25528385p26027544.html
Sent from the GNUstep - Help mailing list archive at Nabble.com.
- Re: printf: doens't print on WinXP installation, jacksk58, 2009/10/22
- Re: printf: doens't print on WinXP installation, jacksk58, 2009/10/22
- Re: printf: doens't print on WinXP installation, Richard Frith-Macdonald, 2009/10/22
- Re: printf: doens't print on WinXP installation, jacksk58, 2009/10/23
- Re: printf: doens't print on WinXP installation, Eduardo Osorio Armenta, 2009/10/23
- Re: printf: doens't print on WinXP installation, Richard Frith-Macdonald, 2009/10/23
- Re: printf: doens't print on WinXP installation, Eduardo Osorio Armenta, 2009/10/23
- Re: printf: doens't print on WinXP installation, Richard Frith-Macdonald, 2009/10/23
- Re: printf: doens't print on WinXP installation, Alex Bilyk, 2009/10/25
- Re: printf: doens't print on WinXP installation,
jacksk58 <=
- Re: printf: doens't print on WinXP installation, Adam Fedor, 2009/10/23
- Re: printf: doens't print on WinXP installation, Richard Frith-Macdonald, 2009/10/23
- Re: printf: doens't print on WinXP installation, Adam Fedor, 2009/10/23
- Re: printf: doens't print on WinXP installation, Richard Frith-Macdonald, 2009/10/23
- Re: printf: doens't print on WinXP installation, jacksk58, 2009/10/24