| View previous topic :: View next topic |
| Author |
Message |
b-k24
Joined: 26 Oct 2008 Posts: 6
|
Posted: Sun Oct 26, 2008 2:15 am Post subject: 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...
| Quote: | //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;
} |
 |
|
| Back to top |
|
 |
Onii
Joined: 05 Oct 2008 Posts: 40
|
Posted: Sun Oct 26, 2008 2:36 am Post subject: |
|
|
This is not psp related. This is BASIC programming. Your compiler can't find your include file.
The very first error says that it can't find oslib.h. |
|
| Back to top |
|
 |
Pirata Nervo
Joined: 09 Oct 2007 Posts: 409
|
Posted: Sun Oct 26, 2008 3:17 am Post subject: |
|
|
You did not install Oslib.
Make sure you include a blank line at the end too _________________
Upgrade your PSP |
|
| Back to top |
|
 |
b-k24
Joined: 26 Oct 2008 Posts: 6
|
Posted: Sun Oct 26, 2008 4:45 am Post subject: |
|
|
i did install the oslib to the specified dir...this isnt the first time i installed it on my pc..i also tried uninstalling and reinstalling but it still fails to find the library
what do i need to do? jus copy the oslib.h/OSlib.lib into the C:\pspdev\psp\sdk\include dir |
|
| Back to top |
|
 |
Onii
Joined: 05 Oct 2008 Posts: 40
|
Posted: Sun Oct 26, 2008 11:09 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
Dariusc123456
Joined: 12 Aug 2008 Posts: 394
|
Posted: Sun Oct 26, 2008 12:48 pm Post subject: |
|
|
| 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. |
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. |
|
| Back to top |
|
 |
|