//OSlib header file
#include <oslib/oslib.h>
//callbacks
PSP_MODULE_INFO("OSLib Sample", 0, 1, 1);
PSP_MAIN_THREAD_ATTR(THREAD_ATTR_USER | THREAD_ATTR_VFPU);
int main()
{
//Initialization of the Oslib library
oslInit(0);
//Initialization of the graphics mode
oslInitGfx(OSL_PF_8888, 0);
//Initialization of the text console
oslInitConsole();
//Print on the screen this text
oslPrintf("Hello World");
//Wait for a button to be pressed
oslWaitKey();
//terminate the program
oslEndGfx();
oslQuit();
return 0;
}
whatz wrong!!
whatz wrong!!
so i redid my pc coz itz vid driver got corrupted so i reinstalled the osilb pspdev kit and tried to compile my soucre didnt work thought it was a problem with my code so i decide to compile a simple hello world code by psdonkey but it still wouldnt compile a simple hello world source it gave me this...
-
- Posts: 409
- Joined: Tue Oct 09, 2007 4:22 am
-
- Posts: 388
- Joined: Tue Aug 12, 2008 12:46 am
When its installed, it dont need to be on the makefile, unless you dont have it in the include folder. Then you do what you need todo.Onii wrote:Add the include paths for osl to your makefile.
EDIT: While we're at it you will need to add the osl library to your makefile too if it's not already there.