Skip to content

Fail on make #53

Description

@gesu92

Hello there, I got this fail on make 🥲

[ 11%] Building CXX object CMakeFiles/toxvpn.dir/src/main.cpp.o
/home/user/toxvpn-master/src/main.cpp: In function ‘bool ToxVPN::saveState(Tox*)’:
/home/user/toxvpn-master/src/main.cpp:60:15: aviso: comparison of integer expressions of different signedness: ‘ssize_t’ {aka ‘long int’} and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
   60 |   if (written != size) {
      |       ~~~~~~~~^~~~~~~
/home/user/toxvpn-master/src/main.cpp:61:47: aviso: formato ‘%d’ expects argument of type ‘int’, but argument 2 has type ‘ssize_t’ {aka ‘long int’} [-Wformat=]
   61 |     printf("failed to write to savedata.new, %d bytes written out of %d\n", written, size);
      |                                              ~^                             ~~~~~~~
      |                                               |                             |
      |                                               int                           ssize_t {aka long int}
      |                                              %ld
/home/user/toxvpn-master/src/main.cpp:61:71: aviso: formato ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
   61 |     printf("failed to write to savedata.new, %d bytes written out of %d\n", written, size);
      |                                                                      ~^              ~~~~
      |                                                                       |              |
      |                                                                       int            size_t {aka long unsigned int}
      |                                                                      %ld
/home/user/toxvpn-master/src/main.cpp: In function ‘int main(int, char**)’:
/home/user/toxvpn-master/src/main.cpp:638:26: error: ‘tox_get_udp_socket’ no se declaró en este ámbito
  638 |           int udp_sock = tox_get_udp_socket(my_tox);
      |                          ^~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/toxvpn.dir/build.make:79: CMakeFiles/toxvpn.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:90: CMakeFiles/toxvpn.dir/all] Error 2
make: *** [Makefile:136: all] Error 2

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