You are not logged in.
Pages: 1
Hey guys,
I have some problems with compiling Sauerenchanced for Linux:
g++ -O3 -fomit-frame-pointer -Wall -fsigned-char -Ishared -Iengine -Ifpsgame -Ienet/include -I/usr/X11R6/include `sdl-config --cflags` -c -o engine/cubeloader.o engine/cubeloader.cpp
engine/cubeloader.cpp: In member function void cubeloader::load_cube_world(char*):
engine/cubeloader.cpp:262:26: error: cannot convert stream* to gzFile for argument 1 to int gzclose(gzFile)
gzclose(f);
^
engine/cubeloader.cpp:267:133: error: cannot convert stream* to gzFile for argument 1 to int gzclose(gzFile)
if(hdr.version>5 && !mod) { conoutf(CON_ERROR, "map %s requires a newer version of the Cube 1 importer", cgzname); gzclose(f); return; }
^
engine/cubeloader.cpp:283:76: error: cannot convert stream* to gzFile for argument 1 to off_t gzseek(gzFile, off_t, int)
if(mod) gzseek(f, hdr.numents*sizeof(c_persistent_entity), SEEK_CUR);
^
In file included from shared/cube.h:65:0,
from engine/engine.h:4:
engine/cubeloader.cpp: At global scope:
shared/command.h:99:48: warning: __dummy_importcube defined but not used [-Wunused-variable]
#define COMMANDN(name, fun, nargs) static bool __dummy_##fun = addcommand(#name, (void (*)())fun, nargs)
^
shared/command.h:100:30: note: in expansion of macro COMMANDN
#define COMMAND(name, nargs) COMMANDN(name, name, nargs)
^
engine/cubeloader.cpp:375:1: note: in expansion of macro COMMAND
COMMAND(importcube, "s");
^
make: *** [engine/cubeloader.o] Error 1
If anyone knows what I can do to fix this, please let me know :)
Offline
Pages: 1