C/C++ Programming Help Thread
This is a discussion on C/C++ Programming Help Thread within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; Zitat von Kwastie ehh i don't realy understand your question.. go to www.psp-programming.com maby your could learn something there Lol. ...
-
04-10-2007, 10:07 AM #3811QJ Gamer Silver

- Registriert seit
- May 2006
- Ort
- Behind you.
- Beiträge
- 1.814
- Points
- 10.921
- Level
- 69
- Downloads
- 0
- Uploads
- 0
Lol. He's asking how to load or run eboots in C, you know, the programming language....
Zitat von Kwastie
Calypso - Enjoy the excellent 2D space shooter:
http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195
"Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)
-
04-10-2007, 10:10 AM #3812QJ Gamer Blue
- Registriert seit
- Mar 2007
- Ort
- Holland..
- Beiträge
- 154
- Points
- 4.022
- Level
- 40
- Downloads
- 0
- Uploads
- 0
after I saw the link you gave to him I knew where he was talking about XD
-= Double Post =-
is there a way to copy an int to another int ?!?
because i am working on a stopwatch and i want to store round info, someone any sugestion'sGeändert von Kwastie (04-10-2007 um 11:02 AM Uhr) Grund: Automerged Doublepost
-
04-10-2007, 11:03 AM #3813
It delays 1/10 of a sec... try 3,000,000. That should solve the problem[most common with prx's]
Zitat von vodkkaa
-
04-10-2007, 11:23 AM #3814Heroes never die

- Registriert seit
- Aug 2006
- Ort
- ...........
- Beiträge
- 1.323
- Points
- 8.645
- Level
- 62
- Downloads
- 0
- Uploads
- 0
eu , lol?
Zitat von Kwastie
int storage;
int stopwatch;
...
storage = stopwatch;
....
-
04-10-2007, 12:10 PM #3815QJ Gamer Bronze
- Registriert seit
- Mar 2007
- Beiträge
- 758
- Points
- 8.665
- Level
- 62
- Downloads
- 0
- Uploads
- 0
http://dl.qj.net/PSPDev-for-Win32-PS...8185/catid/204
could someone upload that to sendspace or rapidshare plz
preferably sendspace
i get an error when downloading it
-= Double Post =-
hey, would a C compilier work the same way as CYGWIN?
(as in, would it still make eboots in C?)Geändert von michaelp (04-10-2007 um 01:07 PM Uhr) Grund: Automerged Doublepost
-
04-10-2007, 01:12 PM #3816QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Let's clear this up.
First up, you ARE programming in C.
All the compiler does is take C code and compile into a format for a targeted platform.
The PSP toolchain is a C and C++ compiler for the PSP platform.
Other C and C++ compilers exist for other platforms. Eg, PC, GP2X GBA etc.
Cygwin is nothing more then a Linux abstract bash shell for Windows.[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]
-
04-10-2007, 01:19 PM #3817QJ Gamer Bronze
- Registriert seit
- Mar 2007
- Beiträge
- 758
- Points
- 8.665
- Level
- 62
- Downloads
- 0
- Uploads
- 0
uh huh
so, can i use a C compiler for programming for the PSP?
-
04-10-2007, 01:22 PM #3818QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Yes, but you can't just use any C or C++ compiler.
Zitat von michaelp
You have to use a C or C++ compiler that TARGETS the PSP platform[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]
-
04-10-2007, 01:25 PM #3819QJ Gamer Bronze
- Registriert seit
- Mar 2007
- Beiträge
- 758
- Points
- 8.665
- Level
- 62
- Downloads
- 0
- Uploads
- 0
alright, thanks
CYGWIN was a bit too hard to set up for me, so i tried looking for something else
do you know any that work for the PSP?
-
04-10-2007, 01:32 PM #3820QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
DevKitPSP that comes with DevKitPro package. DevKitPSP is a precompiled PSP toolchain. It won't contain any external Libraries such PNG, SDL, MikMod etc. though.
[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]
-
04-10-2007, 01:38 PM #3821QJ Gamer Bronze
- Registriert seit
- Mar 2007
- Beiträge
- 758
- Points
- 8.665
- Level
- 62
- Downloads
- 0
- Uploads
- 0
okay, i just download devkitpsp 10, i'll try installing it on my windows 98 computer and tell you what happens
thanx yaustar!
-
04-10-2007, 01:45 PM #3822QJ Gamer Silver

- Registriert seit
- May 2006
- Ort
- Behind you.
- Beiträge
- 1.814
- Points
- 10.921
- Level
- 69
- Downloads
- 0
- Uploads
- 0
Lol, good luck on that...
Zitat von michaelp
Calypso - Enjoy the excellent 2D space shooter:
http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195
"Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)
-
04-10-2007, 01:53 PM #3823QJ Gamer Green
- Registriert seit
- Jul 2006
- Ort
- USA SC/NC
- Beiträge
- 699
- Points
- 5.712
- Level
- 48
- Downloads
- 0
- Uploads
- 0
If there were syntax errors, then it wouldn't compile in the first place. Therefore, he would not have a prx to run on the PSP. :|
Zitat von MrChaos
I thought that was obvious.[CODE]Random Facts:
irc://irc.malloc.us #wtf #**********
[/CODE]
[SIZE="6"][FONT="Century Gothic"][COLOR="Blue"][URL="http://forums.**********.net"]http://forums.**********.net[/URL][/COLOR][/FONT][/SIZE]
-
04-10-2007, 01:59 PM #3824QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
Win98 will still work fine with DevKitPro.
Zitat von TMNT
[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]
-
04-10-2007, 02:03 PM #3825QJ Gamer Bronze
- Registriert seit
- Mar 2007
- Beiträge
- 758
- Points
- 8.665
- Level
- 62
- Downloads
- 0
- Uploads
- 0
are you mocking me? :Cry: :)
Zitat von TMNT
-
04-10-2007, 02:53 PM #3826lol

- Registriert seit
- Aug 2006
- Ort
- Whittier, CA
- Beiträge
- 5.791
- Points
- 20.859
- Level
- 91
- Downloads
- 0
- Uploads
- 0
Why does he need luck?
Zitat von TMNT
-
04-10-2007, 03:04 PM #3827
If you had any common knowledge you would know.
Zitat von Anti-QJ
Windows 98 = slow and buggy.牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
04-10-2007, 03:06 PM #3828QJ Gamer Silver

- Registriert seit
- May 2006
- Ort
- Behind you.
- Beiträge
- 1.814
- Points
- 10.921
- Level
- 69
- Downloads
- 0
- Uploads
- 0
Exactly. Why did i put the windows 98 in italics and bold then?
Zitat von youresam
Calypso - Enjoy the excellent 2D space shooter:
http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195
"Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)
-
04-10-2007, 03:07 PM #3829lol

- Registriert seit
- Aug 2006
- Ort
- Whittier, CA
- Beiträge
- 5.791
- Points
- 20.859
- Level
- 91
- Downloads
- 0
- Uploads
- 0
But it will STILL work fine.
-
04-10-2007, 03:08 PM #3830
If he is lucky. Therefore: "good luck"
Zitat von Anti-QJ
Calm down and think about it.牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
04-10-2007, 03:11 PM #3831lol

- Registriert seit
- Aug 2006
- Ort
- Whittier, CA
- Beiträge
- 5.791
- Points
- 20.859
- Level
- 91
- Downloads
- 0
- Uploads
- 0
Ok, After much thinking, I realize it would be sorta buggy.
-
04-10-2007, 03:13 PM #3832QJ Gamer Silver

- Registriert seit
- May 2006
- Ort
- Behind you.
- Beiträge
- 1.814
- Points
- 10.921
- Level
- 69
- Downloads
- 0
- Uploads
- 0
Wow. Did you just get windows 98?
Calypso - Enjoy the excellent 2D space shooter:
http://dl.qj.net/Calypso-v1-PSP-Home...6542/catid/195
"Quoting yourself in your signature means you love to masterbate while looking at the mirror." -me (oh, wait...)
-
04-10-2007, 03:13 PM #3833lol

- Registriert seit
- Aug 2006
- Ort
- Whittier, CA
- Beiträge
- 5.791
- Points
- 20.859
- Level
- 91
- Downloads
- 0
- Uploads
- 0
No.
-
04-10-2007, 03:56 PM #3834words are stones in my <3

- Registriert seit
- Jul 2005
- Ort
- Spokane
- Beiträge
- 5.008
- Points
- 35.274
- Level
- 100
- My Mood
-
- Downloads
- 1
- Uploads
- 0
Maybe he cant get a better OSbecause his computer doesnt have enough RAM or up-to-date enough hardware? The laptop im currnetly on ran Windows 98 SE because i had 32 MB RAM. I went to a store, bought a 128 mb RAM. Now i may run up to Windows XP, but Windows 2000 is all i need, for Windows XP will run slower than 2000 on this.

...at what speed must I live.. to be able to see you again?...
Projects
You can support my Open World 3D RPG for PSP by voting for it here
-
04-10-2007, 04:13 PM #3835
Eww... Windows 2000
Zitat von SG57
牧来栠摩琠敨映汩獥
PSN: youresamFrom Earth the Frozen Ipaqs shall rise and be silenced and all will live free.
--Mike Hollingsworth
-
04-10-2007, 07:48 PM #3836words are stones in my <3

- Registriert seit
- Jul 2005
- Ort
- Spokane
- Beiträge
- 5.008
- Points
- 35.274
- Level
- 100
- My Mood
-
- Downloads
- 1
- Uploads
- 0
It gets the job done, and by far > than Windows XP, as there are far less viruses built for it (its been 3 years, no virus software and im running just as it was when i first booted up
)

...at what speed must I live.. to be able to see you again?...
Projects
You can support my Open World 3D RPG for PSP by voting for it here
-
04-11-2007, 03:41 AM #3837QJ Gamer Bronze
- Registriert seit
- Mar 2007
- Beiträge
- 758
- Points
- 8.665
- Level
- 62
- Downloads
- 0
- Uploads
- 0
well, it let me run the .exe, i just don't know how to run the actual program
what am i supposed to do after i run the devkitpsp10.exe file?
-= Double Post =-
well, it let me run the .exe, i just don't know how to run the actual program
what am i supposed to do after i run the devkitpsp10.exe file?
also, i have 2 xp comps, but the one i wanna learn on is a 98, that's the only reason whyGeändert von michaelp (04-11-2007 um 03:43 AM Uhr) Grund: Automerged Doublepost
-
04-11-2007, 12:59 PM #3838
Conditional operator
Is it better in terms of speed to use conditional operator as an arguement or use a seperate if statement for the actual statement?
-
04-11-2007, 01:08 PM #3839QJ Gamer Silver

- Registriert seit
- Jun 2006
- Ort
- UK
- Beiträge
- 2.326
- Points
- 10.263
- Level
- 67
- Downloads
- 0
- Uploads
- 0
1. Use the standard if statement. There is VERY little point in using the conditional operator. There is no performence difference as they both still branch code.
Zitat von Mr305
2.Code:unsigned int colour = ( 0 == pos ) ? colour1 : colour2;
[Blog] [Portfolio]
[Homebrew Illuminati - Serious Homebrew Development Forums]
[I want to make Homebrew FAQ] [How I broke into the Games Industry]
[Programming Book List] [Programming Article List]
-
04-11-2007, 06:17 PM #3840
- Registriert seit
- Dec 2006
- Beiträge
- 18
- Points
- 3.542
- Level
- 37
- Downloads
- 0
- Uploads
- 0
Hi, i have a weird problem. It has not much to do with the psp, rather with the C/C++ Compiler, Bloodshed Dev-cpp. Im starting to learn the C language.
When I got the compiler about a half a year ago, i tested it and everything worked perfectly fine. ( I was using Windows Xp at that time). I didnt continue to learn the language because I was kind of lazy
.
But yesterday, i picked it up again and wanted to start over. So i downloaded the Dev-cpp compiler again ( I am now using Vista) and wanted to try out a simple Hello World script. But after it compiled it it gave me a weird error( I used a console app with C as lang.): "File: ...\...\Makefile.win"
"Message: [Build Error] exe: ***[Objects/MingW/main.c] Error 1".
Of course I didnt know wth was going on so I tried a little thing: I opened a new project with the same settings except, I openend as a C++ project and used the exact code as before.( which was btw:
#include <stdio.h>
int main()
{
printf("Hello World");
getchar();
return 0;
}
)
This time it was succesfully compiled and the command prompt opened and show me my "Hello World".
Now my question is, why isnt it working as a C project. Is it because of Vista?
I already tried the v5 of dev-cpp as well as wxDev-C++, same problem for both.
Hope some1 can help me out.
Cynical


LinkBack URL
About LinkBacks
Mit Zitat antworten

Hello everyone I am new here and I am glad to be part of this amazing community and I think there...
New to forum