When I try to compile it I get this error:
Code: Select all
$ make -f Makefile.psp
psp-g++ -O0 -g3 -G0 -fno-rtti -I/usr/local/pspdev/psp/sdk/include -D_FILE_OFFSET
_BITS=64 -D_LARGEFILE_SOURCE -DRARDLL -DSILENT -c rar.cpp
find.hpp:37: error: ISO C++ forbids declaration of 'DIR' with no type
find.hpp:37: error: expected ';' before '*' token
model.hpp:107: warning: 'packed' attribute ignored for field of type 'SEE2_CONTE
XT [25][16]'
model.hpp:107: warning: 'packed' attribute ignored for field of type 'SEE2_CONTE
XT'
make: *** [rar.o] Error 1
Here is the make file for reference:
Code: Select all
#
# Makefile for PSP library - unrar
#
# Linux using GCC
CXX=psp-g++
DEFINES=-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
CXXFLAGS=-O0 -g3 -G0 -fno-rtti -Wno-deprecated \
-I$(shell psp-config --psp-prefix)/sdk/include $(DEFINES)
AR=psp-ar
##########################
COMPILE=$(CXX) $(CXXFLAGS)
LINK=$(CXX)
LIB_OBJ=filestr.o scantree.o dll.o
OBJECTS=rar.o strlist.o strfn.o pathfn.o int64.o savepos.o global.o file.o filefn.o filcreat.o \
archive.o arcread.o unicode.o system.o isnt.o crypt.o crc.o rawread.o encname.o \
resource.o match.o timefn.o rdwrfn.o consio.o options.o ulinks.o errhnd.o rarvm.o \
rijndael.o getbits.o sha1.o extinfo.o extract.o volume.o list.o find.o unpack.o cmddata.o
.cpp.o:
$(COMPILE) -D$(WHAT) -c $<
all: lib
clean:
@rm -f *.o *.bak *~
lib: WHAT=RARDLL -DSILENT
lib: $(OBJECTS) $(LIB_OBJ)
@rm -f libpspunrar.a
$(AR) rcs libpspunrar.a $(OBJECTS) $(LIB_OBJ)