Skip to content

[Arch Linux] compilation fails with "x" not found, did you mean "y"? #72

@Fabxx

Description

@Fabxx

log:

[  6%] Building CXX object src/CMakeFiles/GGPO.dir/lib/ggpo/bitvector.cpp.o
[ 13%] Building CXX object src/CMakeFiles/GGPO.dir/lib/ggpo/game_input.cpp.o
/home/fabx/Desktop/ggpo/src/lib/ggpo/game_input.cpp: In member function ‘void GameInput::desc(char*, size_t, bool) const’:
/home/fabx/Desktop/ggpo/src/lib/ggpo/game_input.cpp:44:20: error: ‘sprintf_s’ was not declared in this scope; did you mean ‘sprintf’?
   44 |       remaining -= sprintf_s(buf, buf_size, "(frame:%d size:%d ", frame, size);
      |                    ^~~~~~~~~
      |                    sprintf
/home/fabx/Desktop/ggpo/src/lib/ggpo/game_input.cpp:46:20: error: ‘sprintf_s’ was not declared in this scope; did you mean ‘sprintf’?
   46 |       remaining -= sprintf_s(buf, buf_size, "(size:%d ", size);
      |                    ^~~~~~~~~
      |                    sprintf
/home/fabx/Desktop/ggpo/src/lib/ggpo/game_input.cpp:52:18: error: ‘sprintf_s’ was not declared in this scope; did you mean ‘sprintf’?
   52 |          int c = sprintf_s(buf2, ARRAY_SIZE(buf2), "%2d ", i);
      |                  ^~~~~~~~~
      |                  sprintf
/home/fabx/Desktop/ggpo/src/lib/ggpo/game_input.cpp:53:10: error: ‘strncat_s’ was not declared in this scope; did you mean ‘strncat’?
   53 |          strncat_s(buf, remaining, buf2, ARRAY_SIZE(buf2));
      |          ^~~~~~~~~
      |          strncat
/home/fabx/Desktop/ggpo/src/lib/ggpo/game_input.cpp:57:4: error: ‘strncat_s’ was not declared in this scope; did you mean ‘strncat’?
   57 |    strncat_s(buf, remaining, ")", 1);
      |    ^~~~~~~~~
      |    strncat
/home/fabx/Desktop/ggpo/src/lib/ggpo/game_input.cpp: In member function ‘void GameInput::log(char*, bool) const’:
/home/fabx/Desktop/ggpo/src/lib/ggpo/game_input.cpp:65:9: error: ‘strcpy_s’ was not declared in this scope; did you mean ‘strcpy’?
   65 |         strcpy_s(buf, prefix);
      |         ^~~~~~~~
      |         strcpy
/home/fabx/Desktop/ggpo/src/lib/ggpo/game_input.cpp:67:4: error: ‘strncat_s’ was not declared in this scope; did you mean ‘strncat’?
   67 |    strncat_s(buf, ARRAY_SIZE(buf) - strlen(buf), "\n", 1);
      |    ^~~~~~~~~
      |    strncat

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions