Slash
Joined: 07 Jan 2007 Posts: 26
|
Posted: Wed Aug 15, 2007 6:32 pm Post subject: Can't use tzset() in prx? |
|
|
I've created a program with only tzset() function in main thread but this error always come up upon compilation...
| Code: | /usr/local/pspdev/lib/gcc/psp/4.1.0/../../../../psp/lib/libc.a(_sbrk.o): In function `_sbrk':../../../../../../newlib/libc/sys/psp/libcglue.c:524: undefined reference to `sceKernelMaxFreeMemSize'
collect2: ld returned 1 exit status
make: *** [timezone_sampler.elf] Error 1 |
Makefile:
| Code: | TARGET = timezone_sampler
OBJS = main.o exports.o
BUILD_PRX = 1
USE_KERNEL_LIBS = 1
PRX_EXPORTS = exports.exp
CFLAGS = -O2 -G0 -Wall
ASFLAGS = $(CFLAGS)
LIBS = -lpspkernel -lpsputility
LDFLAGS = -mno-crt0 -nostartfiles
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak |
Include headers:
| Code: | #include <pspkernel.h>
|
|
|