Code: Select all
unsigned char *loadPNGfromfile(const char *filename,int *widp, int *heip, int swizzleit){widp = 10;heip=10;}
/*called like:*/
charstr = loadPNGfromfile("dir",&width,&height);
Code: Select all
unsigned char *loadPNGfromfile(const char *filename,int &widp, int &heip, int swizzleit){widp = 10;heip=10;}
/*called like:*/
charstr = loadPNGfromfile("dir",width,height);
Is this different in GCC, or have I made a mistake somewhere?
Makefile:
Code: Select all
TARGET = browser
OBJS = main.o p_sprint.o
INCDIR = "/home/Paul/pspgames/freetype/include"
CFLAGS = -O2 -G0 -Wall -I../curl/include -L../curl
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR =
LDFLAGS =
LIBS= -lcurl -lpsp_req -lpspdebug -lpspsdk -lpspwlan -lpspnet_apctl -lpspnet_resolver -lc -lpspnet_inet -lpspnet -lstdc++ -lpspgum -lpspgu -lpng -ljpeg -lz -lm -lfreetype -lpsppower
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Eclipse
PSP_EBOOT_ICON = "icon0.png"
PSP_EBOOT_PIC1 = "eclipsebg.png"
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak