system.cpp:114:12: error: 'sceIoMkdir' was not declared in this scope
DvaMishkiLapa opened this issue · comments
Artem commented
Preliminary checks
- I've checked that there aren't other open issues on the same topic.
- I've checked that this issue is reproducible on the latest snapshot build.
Platform
PlayStation Vita
Describe the bug
Tried to collect the last state.
Nothing has changed, VitaSDK is the current version.
Save file
Additional info
arm-vita-eabi-g++ -c -MD translations.cpp -I/usr/local/vitasdk/arm-vita-eabi/include/SDL2 -std=c++11 -O3 -fsigned-char -pthread -Wall -Wextra -Wpedantic -Wfloat-conversion -Wshadow -Wfloat-equal -Wredundant-decls -Wdouble-promotion -Wunused -Wuninitialized -DFHEROES2_VITA -I/usr/local/vitasdk/arm-vita-eabi/include -O3 -mcpu=cortex-a9 -mfpu=neon -fgraphite-identity -floop-nest-optimize -fno-lto -fno-tree-slp-vectorize -I../thirdparty/libsmacker
arm-vita-eabi-g++ -c -MD system.cpp -I/usr/local/vitasdk/arm-vita-eabi/include/SDL2 -std=c++11 -O3 -fsigned-char -pthread -Wall -Wextra -Wpedantic -Wfloat-conversion -Wshadow -Wfloat-equal -Wredundant-decls -Wdouble-promotion -Wunused -Wuninitialized -DFHEROES2_VITA -I/usr/local/vitasdk/arm-vita-eabi/include -O3 -mcpu=cortex-a9 -mfpu=neon -fgraphite-identity -floop-nest-optimize -fno-lto -fno-tree-slp-vectorize -I../thirdparty/libsmacker
In file included from /usr/local/vitasdk/arm-vita-eabi/include/SDL2/SDL_video.h:33,
from /usr/local/vitasdk/arm-vita-eabi/include/SDL2/SDL_events.h:33,
from /usr/local/vitasdk/arm-vita-eabi/include/SDL2/SDL.h:41,
from system.cpp:39:
/usr/local/vitasdk/arm-vita-eabi/include/SDL2/SDL_rect.h: In function 'SDL_bool SDL_FRectEquals(const SDL_FRect*, const SDL_FRect*)':
/usr/local/vitasdk/arm-vita-eabi/include/SDL2/SDL_rect.h:246:29: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal]
246 | return (a && b && (a->x == b->x) && (a->y == b->y) &&
| ~~~~~^~~~~~~
/usr/local/vitasdk/arm-vita-eabi/include/SDL2/SDL_rect.h:246:47: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal]
246 | return (a && b && (a->x == b->x) && (a->y == b->y) &&
| ~~~~~^~~~~~~
/usr/local/vitasdk/arm-vita-eabi/include/SDL2/SDL_rect.h:247:19: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal]
247 | (a->w == b->w) && (a->h == b->h)) ? SDL_TRUE : SDL_FALSE;
| ~~~~~^~~~~~~
/usr/local/vitasdk/arm-vita-eabi/include/SDL2/SDL_rect.h:247:37: warning: comparing floating-point with '==' or '!=' is unsafe [-Wfloat-equal]
247 | (a->w == b->w) && (a->h == b->h)) ? SDL_TRUE : SDL_FALSE;
| ~~~~~^~~~~~~
system.cpp: In function 'int System::MakeDirectory(const string&)':
system.cpp:114:12: error: 'sceIoMkdir' was not declared in this scope
114 | return sceIoMkdir( path.c_str(), 0777 );
| ^~~~~~~~~~
make[2]: *** [Makefile:32: system.o] Error 1
make[2]: Leaving directory '/home/thesame/vita/fheroes2-vita/src/engine'
make[1]: *** [Makefile:105: all] Error 2
make[1]: Leaving directory '/home/thesame/vita/fheroes2-vita/src'
make: *** [Makefile.vita:60: fheroes2.elf] Error 2