![]() |
|
#851
|
|||
|
|||
|
the makefile is something totally different from the source code. |
|
#852
|
||||
|
||||
|
this would go into a file called "makefile" (without quotes)
Code:
TARGET = Nathan_Test1 OBJS = main.o INCDIR = CFLAGS = -G4 -Wall -O2 CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti ASFLAGS = $(CFLAGS) LIBDIR = LDFLAGS = STDLIBS= -losl -lpng -lz \ -lpspsdk -lpspctrl -lpspumd -lpsprtc -lpsppower -lpspgu -lpspaudiolib -lpspaudio -lm LIBS=$(STDLIBS)$(YOURLIBS) EXTRA_TARGETS = EBOOT.PBP PSP_EBOOT_TITLE = Nathan_Test1 PSPSDK=$(shell psp-config --pspsdk-path) include $(PSPSDK)/lib/build.mak Code:
//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;
}
__________________
![]() ah... it feels good to have a sig again.... SabrOS Progress: Currently working on GUI Latest release |
|
#853
|
|||
|
|||
|
Links don't work....
|
|
#854
|
|||
|
|||
|
Every thread with internal links needs to be updated since the forum change,
__________________
ʕθ̿␣̅θ̿ʔ ℋiЬЬyℬot™ |
|
#855
|
||||
|
||||
|
I'll fix the first post when I get a moment
__________________
The PSP Programming and Development Mega Thread -Rock Station- PSN: Xsjado7 Quote:
|
|
#856
|
|||
|
|||
|
The links in "The PSP Programming and Development Mega Thread" also needs fixing and the link to it in your sig, lol
Most of the threads that it linked to don't seem to exist any more anyway,
__________________
ʕθ̿␣̅θ̿ʔ ℋiЬЬyℬot™ |
|
#857
|
||||
|
||||
|
I've updated the first post and now all the links work except for How to create full screen size images together to make large animations. I havent come across the post yet
Time to spend an eternity fixing the Mega Thread links
__________________
The PSP Programming and Development Mega Thread -Rock Station- PSN: Xsjado7 Quote:
|
|
#858
|
|||
|
|||
|
Im excited to learn that idea..Im not that good w hen it comes to computer but i really want to learn different tings through it.Its interesting to learn and discover new things using the omputer
__________________
child need Last edited by carlyse_09; 11-17-2008 at 10:01 PM. |
|
#859
|
|||
|
|||
|
i just started learning c++ so im a little confused about adding libraries to the makefile. If i was using the libraries "ctime" and "cstdlib" how would i put that into the makefile?
|
|
#860
|
|||
|
|||
|
You don't need those in your makefile.
|
![]() |
|
|
|||
|
|||
|
|
| Thread Tools | |
| Display Modes | |
|
|