 |
forums.ps2dev.org Homebrew PS2, PSP & PS3 Development Discussions
|
| View previous topic :: View next topic |
| Author |
Message |
ps2freak
Joined: 22 Jul 2004 Posts: 4
|
Posted: Thu Jul 22, 2004 4:33 am Post subject: simple hello world, can someone help me ? |
|
|
hello,
i will that this hello world program run under the ps2.
The code is:
| Code: |
#include "stdio.h";
void main()
{
printf("Hello World !!!\n");
printf("(C)2004 by ps2freak");
}
|
i have found an example in the ps2sdk directory:
| Code: |
#include <tamtypes.h>
#include <sifcmd.h>
#include <kernel.h>
#include <sifrpc.h>
#include "sio.h"
int main()
{
SifInitRpc(0);
/*
init_scr();
scr_printf("Hello, world!\n"); // hello world in the screen
*/
printf("Hello, world!\n");
nprintf("Hello, again, from Naplink RPC!\n");
sio_init(115200, 0, 0, 0, 0);
sio_printf("Hello from EE SIO!\n");
/* Return to the bootloader or PS2 browser. */
return 0;
}
|
this code i have edit into the following:
| Code: |
#include <tamtypes.h>
#include <sifcmd.h>
#include <kernel.h>
int main()
{
SifInitRpc(0);
printf("Hello, world!\n");
printf("(C)2004 by ps2freak");
/* Return to the bootloader or PS2 browser. */
return 0;
}
|
Ist this correct ?
my system is winxp and i have visual c++ 6.0 standard
the ps2sdk is under C:\ps2sdk
How can i compile this program for a ps2 system ?
thanks. |
|
| Back to top |
|
 |
pixel
Joined: 30 Jan 2004 Posts: 791
|
Posted: Thu Jul 22, 2004 4:48 am Post subject: |
|
|
Okay. I have to tell you that you are a bit getting on my nerves.
Please, please, oh pretty please with sugar on top, go READ the other posts on the forum, go READ the various documentations around the website (which is http://ps2dev.org in case you missed something) before posting dumb posts.
First, big hint: the toolchain. This beast is mandatory to get a PS2 compiler. No, you can't compile PS2 code using Microsoft Visual Studio. _________________ pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department. |
|
| Back to top |
|
 |
ps2freak
Joined: 22 Jul 2004 Posts: 4
|
Posted: Thu Jul 22, 2004 4:54 am Post subject: |
|
|
hmm very shit support here.
now i have files for visual studio 6 and they works finde. thanks and goodbye. :lol: |
|
| Back to top |
|
 |
blackdroid
Joined: 17 Jan 2004 Posts: 564 Location: Sweden
|
Posted: Thu Jul 22, 2004 5:49 am Post subject: |
|
|
its not a kindergarten live with it, if you are told to read up, go read, or dont bother asking. _________________ Kung VU |
|
| Back to top |
|
 |
ooPo Site Admin
Joined: 17 Jan 2004 Posts: 2032 Location: Canada
|
Posted: Thu Jul 22, 2004 6:01 am Post subject: |
|
|
| (C)2004 by ooPo |
|
| Back to top |
|
 |
|
|
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
|