Jump to content
×
×
  • Create New...
  • 0

Help me compile src


hovasconcelos

Question

compile check_server.cpp
compile dragon_soul_table.cpp
compile DragonSoul.cpp
In file included from ../../libserverkey/CheckServerKey.h:3:0,
                 from check_server.h:6,
                 from check_server.cpp:1:
../../libserverkey/SIM.h: In member function 'bool SIM::ParseLine(const char*)':
../../libserverkey/SIM.h:57:50: error: 'printf' was not declared in this scope
     printf("invalid MAC address - mac(%s)\n", mac);
                                                  ^
../../libserverkey/SIM.h:61:58: error: 'printf' was not declared in this scope
    printf("IP-MAC type added - ip(%u) mac(%s)\n", ip, mac);
                                                          ^
../../libserverkey/SIM.h:81:76: error: 'printf' was not declared in this scope
    printf("IP RANGE type added - begin[%u] end[%u]\n", ipr.fromip, ipr.toip);
                                                                            ^
../../libserverkey/SIM.h:90:47: error: 'printf' was not declared in this scope
   printf("single IP type added - ip(%u)\n", ip);
                                               ^
../../libserverkey/SIM.h: In member function 'bool SIM::checkmac(const char*)':
../../libserverkey/SIM.h:287:59: error: 'printf' was not declared in this scope
    printf("checkmac - invalid length (%s)(%u)\n", mac, len);
                                                           ^
../../libserverkey/SIM.h:302:53: error: 'printf' was not declared in this scope
      printf("checkmac - cannot find '-' (%s)\n", mac);
                                                     ^
../../libserverkey/SIM.h:313:65: error: 'printf' was not declared in this scope
    printf("checkmac - invalid character (%s)(%c)\n", mac, mac[i]);
                                                                 ^
../../libserverkey/SIM.h: In member function 'bool SIM::mac2bin(const string&, unsigned char*)':
../../libserverkey/SIM.h:331:31: error: 'atoi' was not declared in this scope
     unsigned char b = atoi(buf);
                               ^
../../libserverkey/SIM.h:344:61: error: 'strtol' was not declared in this scope
     unsigned char b = (unsigned char)strtol(buf, &endptr, 16);
                                                             ^
../../libserverkey/SIM.h: In member function 'void SIM::bin2mac(unsigned char*, char*)':
../../libserverkey/SIM.h:356:47: error: 'snprintf' was not declared in this scope
    _snprintf(outbuf + (i*3), 3, "%02X", bin[i]);
                                               ^
gmake: *** [Makefile:131: OBJDIR/check_server.o] Error 1
gmake: *** Waiting for unfinished jobs....
compile group_text_parse_tree.cpp

 

Why this mistake in the end? 

Link to comment
Share on other sites

  • Answers 1
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.


Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.