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