I have placed graphics.h and graphics.c in the same directory of my app and now i get an error like if i wouldn't been calling the graphics lib o.0
like 
undefined reference to 'initGraphics()' and stuff
Im just experimenting with PNGs with PSP tho,il work on a brew after i finish with this error >_<
heres my code and here is my make file.
Code:
Code: Select all
//PSP Header Files
#include <pspkernel.h>
#include <pspdebug.h>
#include <pspctrl.h>
#include <pspdisplay.h>
#include <pspgu.h>
#include <png.h>
#include <stdio.h>
#include "graphics.h"
//This is the programs (Prog Name,major ver,minor ver)
PSP_MODULE_INFO ("Dump",0,1,1);
//Define Print as pspDebugScreenPrintf
#define printf pspDebugScreenPrintf
//Code Body
SceCtrlData pad;
int main()
{
          char buffer[200];
          Image* ourImage;
	pspDebugScreenInit();
          initGraphics();
		sprintf(buffer, "ourImage.png");
          ourImage = loadImage(buffer);
		   blitAlphaImageToScreen(0 ,0 ,480 , 272, ourImage, 0, 0);
		   flipScreen();
sceCtrlReadBufferPositive(&pad, 1);
		   while (1)
		   {
			   if(pad.Buttons & PSP_CTRL_SQUARE)
			   {
				   sceKernelExitGame();
			   }
		   }
//end if
//Pause untill user press "Home"
sceKernelSleepThread();
return 0;
}
// end of code
Makefile:
Code: Select all
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
I don't know whats with the error...
Thanks.