Code: Select all
@echo off
CD C:\devkitPro\devkitPPC\powerpc-gekko\bin\
gcc.exe demo.c
rem note demo.c and gcc.exe are in the SAME dir
pause>nul
can some one please help?
oh and here's the dump of my PC's env var's and my demo file's source code
dump of env var's
Code: Select all
ALLUSERSPROFILE=C:\Documents and Settings\All Users
APPDATA=C:\Documents and Settings\Da hacker\Application Data
CLIENTNAME=Console
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=DA-EC5FC7F42DE5
ComSpec=C:\WINDOWS\system32\cmd.exe
DEVKITARM=/c/devkitPro/devkitARM
DEVKITPPC=/c/devkitPro/devkitPPC
DEVKITPRO=/c/devkitPro
DEVKITPSP=/c/devkitPro/devkitPSP
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\Documents and Settings\Da hacker
LOGONSERVER=\\DA-EC5FC7F42DE5
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
Path=c:\devkitPro\msys\bin;C:\Ruby\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Universal Extractor;C:\Program Files\Universal Extractor\bin;;C:\FPC\2.2.4\bin\i386-Win32
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.RB;.RBW
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 104 Stepping 1, AuthenticAMD
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=6801
ProgramFiles=C:\Program Files
PROMPT=$P$G
RUBYOPT=-rubygems
SESSIONNAME=Console
SYS=C:\WINDOWS\SYSTEM32
SystemDrive=C:
SystemRoot=C:\WINDOWS
TEMP=C:\DOCUME~1\DAHACK~1\LOCALS~1\Temp
TMP=C:\DOCUME~1\DAHACK~1\LOCALS~1\Temp
USERDOMAIN=DA-EC5FC7F42DE5
USERNAME=Da hacker
USERPROFILE=C:\Documents and Settings\Da hacker
windir=C:\WINDOWS
Code: Select all
#include <stdio.h>
#include <stdlib.h>
#include <gccore.h>
#include <wiiuse/wpad.h>
int main()
{
printf ("Press A to reboot!");
if (pressed & WPAD_BUTTON_A)
{
cout<<"Restarting!";
SYS_ResetSystem(SYS_RESTART,0,0);
}
}
And yeah i frogot to tell you what os this happens on:
this is happening on a WIN ( 32 ) XP laptop
Thanks!