Can't use tzset() in prx?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Slash
Posts: 26
Joined: Sun Jan 07, 2007 9:04 pm

Can't use tzset() in prx?

Post by Slash »

I've created a program with only tzset() function in main thread but this error always come up upon compilation...

Code: Select all

/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: Select all

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: Select all

#include <pspkernel.h>
Post Reply