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 Alexisonfire This is basically exactly what you're looking for. I have it in my own thread somewhere, but ...
-
09-12-2006, 02:56 PM #871I'm Baaaack!

- Registriert seit
- May 2006
- Ort
- Nowhere
- Beiträge
- 2.186
- Points
- 17.067
- Level
- 83
- Downloads
- 0
- Uploads
- 0
Is that Slasher's? Because I already have that. I got it now though. Thanks for your help.
Zitat von Alexisonfire

-
09-12-2006, 03:04 PM #872OMFG

- Registriert seit
- Jul 2005
- Ort
- Toronto
- Beiträge
- 2.814
- Points
- 19.453
- Level
- 88
- Downloads
- 0
- Uploads
- 0
Have a look at my sig, it's me :)
Zitat von Alexisonfire
-
09-12-2006, 03:16 PM #873I'm Baaaack!

- Registriert seit
- May 2006
- Ort
- Nowhere
- Beiträge
- 2.186
- Points
- 17.067
- Level
- 83
- Downloads
- 0
- Uploads
- 0
Durr. God I'm stupid. I know that you're slasher. I just got you confused with homer because he posted too.

-
09-13-2006, 04:13 AM #874Heroes never die

- Registriert seit
- Aug 2006
- Ort
- ...........
- Beiträge
- 1.323
- Points
- 8.645
- Level
- 62
- Downloads
- 0
- Uploads
- 0
when i was testing with loading backgrounds and cpu speed i get this error

Code://cpu speed changer /* cpu speed changer created by hallo007 (8 september 2006)and produced by rp productions thnx to psp-programming for their tutorials */ #include <pspkernel.h> //alle codes voor de psp zodat schrijven gemmakelijker word #include <pspdebug.h> //nodig voor text op het scherm te printen #include <pspdisplay.h> #include <pspctrl.h> #include <stdio.h> #include <psppower.h> PSP_MODULE_INFO("cpu speed changer", 0, 1, 1); /* niets belangerijk we vertellen de psp de naam van het programma maar je kan het weglaten het is niet echt de naam dat op het scherm zal verschijnen */ #define printf pspDebugScreenPrintf /* we vertellen de compiller dat we screen gaan printen en om het gemmakelijk te maken zorgen we ervoor dat de compiller vanaf nu prontf kan lezen */ /* Exit callback */ int exit_callback(int arg1, int arg2, void *common) { sceKernelExitGame(); return 0; } /* Callback thread */ int CallbackThread(SceSize args, void *argp) { int cbid; cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL); sceKernelRegisterExitCallback(cbid); sceKernelSleepThreadCB(); return 0; } /* Sets up the callback thread and returns its thread id */ int SetupCallbacks(void) { int thid = 0; thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0); if(thid >= 0) { sceKernelStartThread(thid, 0, 0); } return thid; } //belangerijk altijd in code aanwezig zijn voor het sluiten enzovoort int main() { //start een functie pspDebugScreenInit(); SetupCallbacks(); //zorg ervoor dat de functie start printf("rp productions"); //print text on screen Image* menu; menu = loadImage("menu.png")//laad afbeelding SceCtrlData pad;//zo kan je de controls gebruiken if(pad.Buttons & PSP_CTRL_UP) {//zeg wat de psp moet doen met het indrukken van up int main(void) { scePowerSetClockFrequency(333, 333, 166);//zet de cpu speed } printf("cpu speed = 333, 333, 166"); //print text on screen } if(pad.Buttons & PSP_CTRL_DOWN) {//zeg wat de psp moet doen met het indrukken van down int main(void) { scePowerSetClockFrequency(222, 222, 111);//zet de cpu speed } printf("cpu speed = 222, 222, 111"); //print text on screen } sceKernelSleepThread(); // dit zorgt ervoor dat de psp een pause neemt waardoor je je functie kan zien return 0; // het blift de functie herhalen herhalen } /* nu zeggen we dat de functie gedaan is en kan de psp eventueel de volgende functies uitvoeren of beter gezegd de ram blift de functie niet herladen */ //momenteel eindeGeändert von hallo007 (09-13-2006 um 04:27 AM Uhr)
-
09-13-2006, 04:19 AM #875QJ Gamer Blue
- Registriert seit
- Jul 2006
- Beiträge
- 53
- Points
- 3.941
- Level
- 39
- Downloads
- 0
- Uploads
- 0
You just had the same error three days ago. I'm guessing the same fix will work a second time.
-
09-13-2006, 04:19 AM #876AKA Homer

- Registriert seit
- Jan 2006
- Ort
- Sweden
- Beiträge
- 1.779
- Points
- 12.596
- Level
- 73
- Downloads
- 0
- Uploads
- 0
I told you before. Copy c:\cygwin\bin\cygwin1.dll to C:\windows\system32
-
09-13-2006, 04:27 AM #877Heroes never die

- Registriert seit
- Aug 2006
- Ort
- ...........
- Beiträge
- 1.323
- Points
- 8.645
- Level
- 62
- Downloads
- 0
- Uploads
- 0
ow srry gays
i uploaded the wrong imgae xD
really srry
i m uploading the real image now
-= Double Post =-
oke now is it the good picture i did check it ;)Geändert von hallo007 (09-13-2006 um 04:27 AM Uhr) Grund: Automerged Doublepost
-
09-13-2006, 04:30 AM #878AKA Homer

- Registriert seit
- Jan 2006
- Ort
- Sweden
- Beiträge
- 1.779
- Points
- 12.596
- Level
- 73
- Downloads
- 0
- Uploads
- 0
Who're you calling gay?ow srry gays
i uploaded the wrong imgae xD
lol, j/k.
Anyway, you haven't included the graphics lib nor psppad.h.
-
09-13-2006, 04:33 AM #879Heroes never die

- Registriert seit
- Aug 2006
- Ort
- ...........
- Beiträge
- 1.323
- Points
- 8.645
- Level
- 62
- Downloads
- 0
- Uploads
- 0
oke thnx
the problem is
if i take an snapshot i open it with paint and save it
but it saves always as naamloos (i dont changes the name
but i got many with that name:d
so i v got
naamloos.gif
naamloos.png
....
lol
-
09-13-2006, 04:41 AM #880AKA Homer

- Registriert seit
- Jan 2006
- Ort
- Sweden
- Beiträge
- 1.779
- Points
- 12.596
- Level
- 73
- Downloads
- 0
- Uploads
- 0
You do know you can copy text from the cygwin window right?
Zitat von jsharrad
-
09-13-2006, 04:51 AM #881Heroes never die

- Registriert seit
- Aug 2006
- Ort
- ...........
- Beiträge
- 1.323
- Points
- 8.645
- Level
- 62
- Downloads
- 0
- Uploads
- 0
still the same problemsCode://image viewer /* image viewer created by hallo007 (8 september 2006)and produced by rp productions thnx to psp-programming for their tutorials */ #include <pspkernel.h> //alle codes voor de psp zodat schrijven gemmakelijker word #include <pspdebug.h> //nodig voor text op het scherm te printen #include <pspdisplay.h> #include <pspctrl.h> #include <stdio.h> #include <psppower.h> #include <pspctrl.h> #include <pspgu.h> #include <png.h> #include "graphics.h" PSP_MODULE_INFO("image viewer", 0, 1, 1); /* niets belangerijk we vertellen de psp de naam van het programma maar je kan het weglaten het is niet echt de naam dat op het scherm zal verschijnen */ #define printf pspDebugScreenPrintf /* we vertellen de compiller dat we screen gaan printen en om het gemmakelijk te maken zorgen we ervoor dat de compiller vanaf nu prontf kan lezen */ /* Exit callback */ int exit_callback(int arg1, int arg2, void *common) { sceKernelExitGame(); return 0; } /* Callback thread */ int CallbackThread(SceSize args, void *argp) { int cbid; cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL); sceKernelRegisterExitCallback(cbid); sceKernelSleepThreadCB(); return 0; } /* Sets up the callback thread and returns its thread id */ int SetupCallbacks(void) { int thid = 0; thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0); if(thid >= 0) { sceKernelStartThread(thid, 0, 0); } return thid; } //belangerijk altijd in code aanwezig zijn voor het sluiten enzovoort int main() { //start een functie pspDebugScreenInit(); SetupCallbacks(); //zorg ervoor dat de functie start printf("rp productions"); //print text on screen Image* menu; menu = loadImage("menu.png")//laad afbeelding SceCtrlData pad;//zo kan je de controls gebruiken if(pad.Buttons & PSP_CTRL_UP) {//zeg wat de psp moet doen met het indrukken van up int main(void) { scePowerSetClockFrequency(333, 333, 166);//zet de cpu speed } printf("cpu speed = 333, 333, 166"); //print text on screen } if(pad.Buttons & PSP_CTRL_DOWN) {//zeg wat de psp moet doen met het indrukken van down int main(void) { scePowerSetClockFrequency(222, 222, 111);//zet de cpu speed } printf("cpu speed = 222, 222, 111"); //print text on screen } sceKernelSleepThread(); // dit zorgt ervoor dat de psp een pause neemt waardoor je je functie kan zien return 0; // het blift de functie herhalen herhalen } /* nu zeggen we dat de functie gedaan is en kan de psp eventueel de volgende functies uitvoeren of beter gezegd de ram blift de functie niet herladen */ //momenteel einde
-= Double Post =-
no i dindt now it thnx
Zitat von homer

-= Double Post =-
problems:
Roel [email protected] ~
$ cd projects/bet
Roel [email protected] ~/projects/bet
$ make
psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -c -o main.o mai
n.c
main.c:19:22: error: graphics.h: No such file or directory
main.c: In function 'main':
main.c:65: error: 'Image' undeclared (first use in this function)
main.c:65: error: (Each undeclared identifier is reported only once
main.c:65: error: for each function it appears in.)
main.c:65: error: 'menu' undeclared (first use in this function)
main.c:66: warning: implicit declaration of function 'loadImage'
main.c:67: error: syntax error before 'SceCtrlData'
main.c:68: error: 'pad' undeclared (first use in this function)
main.c:69: warning: 'main' is normally a non-static function
main.c:75: warning: 'main' is normally a non-static function
make: *** [main.o] Error 1
-= Double Post =-
and dont forget still a dummie ad c/c++
Geändert von hallo007 (09-13-2006 um 04:51 AM Uhr) Grund: Automerged Doublepost
-
09-13-2006, 04:51 AM #882AKA Homer

- Registriert seit
- Jan 2006
- Ort
- Sweden
- Beiträge
- 1.779
- Points
- 12.596
- Level
- 73
- Downloads
- 0
- Uploads
- 0
You never included psppad.h, and did you add graphics.c and framebuffer.c to your OBJS in your makefile?
-
09-13-2006, 06:41 AM #883Heroes never die

- Registriert seit
- Aug 2006
- Ort
- ...........
- Beiträge
- 1.323
- Points
- 8.645
- Level
- 62
- Downloads
- 0
- Uploads
- 0
o now forgotten , i m a dumbass ;)
thnx
-= Double Post =-
still problems this is my makefile
and the main.cCode:TARGET = hello OBJS = main.o graphics.o framebuffer.o CFLAGS = -O2 -G0 -Wall CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti ASFLAGS = $(CFLAGS) LIBDIR = LIBS = -lpspgu -lpng -lz -lm LDFLAGS = EXTRA_TARGETS = EBOOT.PBP PSP_EBOOT_TITLE = Image Example PSPSDK=$(shell psp-config --pspsdk-path) include $(PSPSDK)/lib/build.mak
-= Double Post =-Code://image viewer /* image viewer created by hallo007 (8 september 2006)and produced by rp productions thnx to psp-programming for their tutorials */ #include <pspkernel.h> //alle codes voor de psp zodat schrijven gemmakelijker word #include <pspdebug.h> //nodig voor text op het scherm te printen #include <pspdisplay.h> #include <pspctrl.h> #include <stdio.h> #include <psppower.h> #include <pspctrl.h> #include <pspgu.h> #include <png.h> #include <psppad.h> #include "graphics.h" PSP_MODULE_INFO("image viewer", 0, 1, 1); /* niets belangerijk we vertellen de psp de naam van het programma maar je kan het weglaten het is niet echt de naam dat op het scherm zal verschijnen */ #define printf pspDebugScreenPrintf /* we vertellen de compiller dat we screen gaan printen en om het gemmakelijk te maken zorgen we ervoor dat de compiller vanaf nu prontf kan lezen */ /* Exit callback */ int exit_callback(int arg1, int arg2, void *common) { sceKernelExitGame(); return 0; } /* Callback thread */ int CallbackThread(SceSize args, void *argp) { int cbid; cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL); sceKernelRegisterExitCallback(cbid); sceKernelSleepThreadCB(); return 0; } /* Sets up the callback thread and returns its thread id */ int SetupCallbacks(void) { int thid = 0; thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0); if(thid >= 0) { sceKernelStartThread(thid, 0, 0); } return thid; } //belangerijk altijd in code aanwezig zijn voor het sluiten enzovoort int main() { //start een functie pspDebugScreenInit(); SetupCallbacks(); //zorg ervoor dat de functie start printf("rp productions"); //print text on screen Image* menu; menu = loadImage("menu.png")//laad afbeelding SceCtrlData pad;//zo kan je de controls gebruiken if(pad.Buttons & PSP_CTRL_UP) {//zeg wat de psp moet doen met het indrukken van up int main(void) { scePowerSetClockFrequency(333, 333, 166);//zet de cpu speed } printf("cpu speed = 333, 333, 166"); //print text on screen } if(pad.Buttons & PSP_CTRL_DOWN) {//zeg wat de psp moet doen met het indrukken van down int main(void) { scePowerSetClockFrequency(222, 222, 111);//zet de cpu speed } printf("cpu speed = 222, 222, 111"); //print text on screen } sceKernelSleepThread(); // dit zorgt ervoor dat de psp een pause neemt waardoor je je functie kan zien return 0; // het blift de functie herhalen herhalen } /* nu zeggen we dat de functie gedaan is en kan de psp eventueel de volgende functies uitvoeren of beter gezegd de ram blift de functie niet herladen */ //momenteel einde
do somone see it in the code
because i mixed some tutorials
-= Double Post =-
no one????:s:sGeändert von hallo007 (09-13-2006 um 06:41 AM Uhr) Grund: Automerged Doublepost
-
09-13-2006, 07:47 PM #884Your Fate is Grim...

- Registriert seit
- Oct 2005
- Beiträge
- 2.269
- Points
- 11.640
- Level
- 70
- Downloads
- 0
- Uploads
- 0
question:
im using OSlib, and i want to print a variable (integer) to the screen. i dont get how. i tried sprintf, dont work. i checks the docs, but i guess is missed, and i RLY dont wnat to read 1mb worth of text all over again.
so my question is:
how do you print variables to the screen in OSlib?--------------------------------------------------------------------------------------
-
09-13-2006, 08:23 PM #885QJ Gamer Blue
- Registriert seit
- Jul 2006
- Beiträge
- 53
- Points
- 3.941
- Level
- 39
- Downloads
- 0
- Uploads
- 0
Quick and dirty integer printing:
Zitat von Grimfate126
Code:char temp[64]; int i = 1; snprintf(temp, 63, "The value of i is %d", i); oslPrintf_xy(1, 5, temp);
-
09-15-2006, 06:41 AM #886Developer

- Registriert seit
- Oct 2005
- Ort
- Boston, MA
- Beiträge
- 1.389
- Points
- 14.378
- Level
- 77
- Downloads
- 0
- Uploads
- 0
I know this may seem a noobish question but...
When you create an eboot, how do you use a C++ instead of a C file(as shown in a tutorial im veiwing), is it basically by putting a cpp file in the project folder instead of a c file?
--Vaza
-
09-15-2006, 06:46 AM #887AKA Homer

- Registriert seit
- Jan 2006
- Ort
- Sweden
- Beiträge
- 1.779
- Points
- 12.596
- Level
- 73
- Downloads
- 0
- Uploads
- 0
Yup, the pspsdk automatically finds out whether it should use psp-gcc or psp-g++. So just change the extension to .cpp and it should work just fine.
Zitat von Vaza
-
09-15-2006, 08:18 AM #888Developer

- Registriert seit
- Oct 2005
- Ort
- Boston, MA
- Beiträge
- 1.389
- Points
- 14.378
- Level
- 77
- Downloads
- 0
- Uploads
- 0
Thanks, i'm just starting C++, im using a "Learn C++ in 21 Days" guide, im on day 3.
Zitat von homer
http://newdata.box.sk/bx/c/
If anyone wants to see the guide, thats it^^
-
09-15-2006, 10:20 AM #889
you can do this as simple as:
Zitat von СУББОТА
however, i recommend:Code:int i = 1; oslPrintf_xy(1, 5, "%d", i);
Code:int i=1; oslDebug("i = %d", i);
-
09-16-2006, 04:03 PM #890I'm Baaaack!

- Registriert seit
- May 2006
- Ort
- Nowhere
- Beiträge
- 2.186
- Points
- 17.067
- Level
- 83
- Downloads
- 0
- Uploads
- 0
OK, I'm making my first, non-tutorial application. But I get an error when compiling it. I've already sorted through and eliminated most of the errors, but I still have this left. Anyone know how to fix it? What does 'undefined reference' mean?
Code:$ make psp-gcc -I. -I/usr/local/pspdev/psp/sdk/include -O2 -G0 -Wall -L. -L/usr/local/ pspdev/psp/sdk/lib mp3player.o main.o -lmad -lpspaudiolib -lpspaudio -lpsppowe r -lpspdebug -lpspdisplay -lpspge -lpspctrl -lpspsdk -lc -lpspnet -lpspnet_inet -lpspnet_apctl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o mp3.elf main.o: In function `main': main.c:(.text+0xf0): undefined reference to `initGraphics' main.c:(.text+0x13c): undefined reference to `loadImage' main.c:(.text+0x164): undefined reference to `blitAlphaImageToScreen' collect2: ld returned 1 exit status make: *** [mp3.elf] Error 1

-
09-16-2006, 04:14 PM #891Your Fate is Grim...

- Registriert seit
- Oct 2005
- Beiträge
- 2.269
- Points
- 11.640
- Level
- 70
- Downloads
- 0
- Uploads
- 0
let us see your code. im thinking that yu havent included a library.
Zitat von ARza
--------------------------------------------------------------------------------------
-
09-16-2006, 04:52 PM #892I'm Baaaack!

- Registriert seit
- May 2006
- Ort
- Nowhere
- Beiträge
- 2.186
- Points
- 17.067
- Level
- 83
- Downloads
- 0
- Uploads
- 0
Nevermind, I found the problem. It was in the Makefile.
-= Double Post =-
OK, now I have 2 more problems.
1. I have pasted my background to the screen, but when I try to print something on the background, it just shows a black screen with text. No background shown.
2. How do I position the text? Like X and Y coordinates?Geändert von ARza (09-16-2006 um 04:52 PM Uhr) Grund: Automerged Doublepost

-
09-17-2006, 03:49 AM #893Developer

- Registriert seit
- Mar 2006
- Beiträge
- 1.026
- Points
- 7.577
- Level
- 58
- Downloads
- 0
- Uploads
- 0
If you're using the graphics.c & graphics.h then the function you require is printTextScreen.
Zitat von ARza
Otherwise....
If you are using pspDebugScreenPrintf then you get that black 'box' surrounding your text, it's a debug screen after all - nothing more.
pspDebugScreenSetXY to position your text.
(I'd recommend using printTextScreen if you are indeed using graphics.c & graphics.h)
Check out my homebrew & C tutorials at http://insomniac.0x89.org/
Coder formerly known as Insomniac197
tshirtz: what is irshell ??
Atarian_: it's where people who work for the IRS go when they die
-
09-17-2006, 05:30 AM #894I'm Baaaack!

- Registriert seit
- May 2006
- Ort
- Nowhere
- Beiträge
- 2.186
- Points
- 17.067
- Level
- 83
- Downloads
- 0
- Uploads
- 0
Thanks. I found that out already, but I was too tired to post. BTW- AniMate is a GREAT game. You should have entered it into the PSPU contest. You could have won. Keep up the good work.

-= Double Post =-
OK, now I'm doing something a little different. I'm building a PRX. But I get this error:
Code:$ make psp-gcc -I/usr/local/pspdev/psp/sdk/include/libc -I. -I/usr/local/pspdev/psp/sdk /include -O2 -G0 -Wall -c -o main.o main.c make: *** No rule to make target `exports.o', needed by `hello.elf'. Stop.
Geändert von ARza (09-17-2006 um 05:30 AM Uhr) Grund: Automerged Doublepost

-
09-17-2006, 05:48 AM #895AKA Homer

- Registriert seit
- Jan 2006
- Ort
- Sweden
- Beiträge
- 1.779
- Points
- 12.596
- Level
- 73
- Downloads
- 0
- Uploads
- 0
You need an exports.exp file, I'd suggest you have a look at the sdk examples.
-
09-17-2006, 06:21 AM #896I'm Baaaack!

- Registriert seit
- May 2006
- Ort
- Nowhere
- Beiträge
- 2.186
- Points
- 17.067
- Level
- 83
- Downloads
- 0
- Uploads
- 0
EDIT: Nevermind, it's fixed.
-= Double Post =-
Sorry for asking for so much help, but now I'm getting this really long error. I've been trying to sort it for like 20 minutes, and I can't figure it out. Maybe someone else knows what's wrong.
Code:[email protected] ~/projects/helloPRXsrc $ make psp-gcc -I/usr/local/pspdev/psp/sdk/include/libc -I. -I/usr/local/pspdev/psp/sdk /include -O2 -G0 -Wall -c -o main.o main.c psp-gcc -I/usr/local/pspdev/psp/sdk/include/libc -I. -I/usr/local/pspdev/psp/sdk /include -O2 -G0 -Wall -L. -L/usr/local/pspdev/psp/sdk/lib -specs=/usr/local/ps pdev/psp/sdk/lib/prxspecs -Wl,-q,-T/usr/local/pspdev/psp/sdk/lib/linkfile.prx main.o graphics.o framebuffer.o exports.o -lpspgu -lpng -lz -lm -lpspdebug -lpsp display -lpspge -lpspctrl -lpspsdk -lpsplibc -lpspnet -lpspnet_inet -lpspnet_apc tl -lpspnet_resolver -lpsputility -lpspuser -lpspkernel -o hello.elf /usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngerror.o): In function `png_warning': pngerror.c:(.text+0x14c): undefined reference to `_impure_ptr' pngerror.c:(.text+0x14c): relocation truncated to fit: R_MIPS_GPREL16 against `_ impure_ptr' pngerror.c:(.text+0x1a8): undefined reference to `_impure_ptr' pngerror.c:(.text+0x1a8): relocation truncated to fit: R_MIPS_GPREL16 against `_ impure_ptr' pngerror.c:(.text+0x1ac): undefined reference to `_impure_ptr' pngerror.c:(.text+0x1ac): relocation truncated to fit: R_MIPS_GPREL16 against `_ impure_ptr' /usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngerror.o): In function `png_error': pngerror.c:(.text+0x2a8): undefined reference to `_impure_ptr' pngerror.c:(.text+0x2a8): relocation truncated to fit: R_MIPS_GPREL16 against `_ impure_ptr' pngerror.c:(.text+0x310): undefined reference to `_impure_ptr' pngerror.c:(.text+0x310): relocation truncated to fit: R_MIPS_GPREL16 against `_ impure_ptr' /usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngerror.o):png error.c:(.text+0x314): more undefined references to `_impure_ptr' follow /usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngerror.o): In function `png_error': pngerror.c:(.text+0x314): relocation truncated to fit: R_MIPS_GPREL16 against `_ impure_ptr' /usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngrutil.o): In function `png_handle_gAMA': pngrutil.c:(.text+0xd08): relocation truncated to fit: R_MIPS_GPREL16 against `_ impure_ptr' /usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngrutil.o): In function `png_handle_cHRM': pngrutil.c:(.text+0x1470): relocation truncated to fit: R_MIPS_GPREL16 against ` _impure_ptr' pngrutil.c:(.text+0x14e0): relocation truncated to fit: R_MIPS_GPREL16 against ` _impure_ptr' /usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngrutil.o): In function `png_handle_sRGB': pngrutil.c:(.text+0x1790): relocation truncated to fit: R_MIPS_GPREL16 against ` _impure_ptr' /usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngwrite.o): In function `png_convert_from_time_t': pngwrite.c:(.text+0xac4): undefined reference to `gmtime' /usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngwutil.o): In function `png_write_cHRM': pngwutil.c:(.text+0x1120): undefined reference to `_impure_ptr' pngwutil.c:(.text+0x1120): additional relocation overflows omitted from the outp ut /usr/local/pspdev/lib/gcc/psp/4.0.2/../../../../psp/lib/libpng.a(pngwutil.o): In function `png_write_cHRM_fixed': pngwutil.c:(.text+0x16dc): undefined reference to `_impure_ptr' collect2: ld returned 1 exit status make: *** [hello.elf] Error 1
Geändert von ARza (09-17-2006 um 06:21 AM Uhr) Grund: Automerged Doublepost

-
09-17-2006, 06:29 AM #897Your Fate is Grim...

- Registriert seit
- Oct 2005
- Beiträge
- 2.269
- Points
- 11.640
- Level
- 70
- Downloads
- 0
- Uploads
- 0
Zitat von ARza
i 90% sure hthe problem is in your makefile. check if you have everything correc in there.
-= Double Post =-
anybody know a good md2 loader with animation capabalities?Geändert von Grimfate126 (09-17-2006 um 06:29 AM Uhr) Grund: Automerged Doublepost
--------------------------------------------------------------------------------------
-
09-17-2006, 06:31 AM #898Developer

- Registriert seit
- Mar 2006
- Beiträge
- 1.026
- Points
- 7.577
- Level
- 58
- Downloads
- 0
- Uploads
- 0
If you have either of these:
In your makefile, take them out.Code:USE_PSPSDK_LIBC = 1 USE_KERNEL_LIBS = 1

Check out my homebrew & C tutorials at http://insomniac.0x89.org/
Coder formerly known as Insomniac197
tshirtz: what is irshell ??
Atarian_: it's where people who work for the IRS go when they die
-
09-17-2006, 06:32 AM #899Your Fate is Grim...

- Registriert seit
- Oct 2005
- Beiträge
- 2.269
- Points
- 11.640
- Level
- 70
- Downloads
- 0
- Uploads
- 0
Zitat von Insomniac197
offtopic:
can u ckeck ur pm's?--------------------------------------------------------------------------------------
-
09-17-2006, 06:34 AM #900I'm Baaaack!

- Registriert seit
- May 2006
- Ort
- Nowhere
- Beiträge
- 2.186
- Points
- 17.067
- Level
- 83
- Downloads
- 0
- Uploads
- 0
EDIT: Nevermind



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