Postado Fevereiro 2, 2018 7 anos Ola galera, estou tentando compilar essa source so que ta dando erro no Tools.cp, alguém poderia me ajuda? Segue abaixo o erro Mostrar conteúdo oculto Compiler: Default compiler Building Makefile: "C:\Users\Tatsune\Desktop\Servidor NTO B&W\Source uint_16\dev-cpp\Makefile.win" Executing make... make.exe -f "C:\Users\Tatsune\Desktop\Servidor NTO B&W\Source uint_16\dev-cpp\Makefile.win" all g++.exe -c ../tools.cpp -o Obj/tools.o -I"C:/Users/Tatsune/Documents/Stian's Repack Dev-Cpp/include" -D__ENABLE_SERVER_DIAGNOSTIC__ -D__ROOT_PERMISSION__ -D__GROUND_CACHE__ -D__USE_SQLITE__ -D__USE_MYSQL__ -D__CONSOLE__ -D__WAR_SYSTEM__ ../tools.cpp:23:27: openssl/plain.h: No such file or directory ../tools.cpp:24:25: openssl/md5.h: No such file or directory ../tools.cpp: In function `std::string transformToMD5(std::string, bool)': ../tools.cpp:33: error: `MD5_CTX' was not declared in this scope ../tools.cpp:33: error: expected `;' before "c" ../tools.cpp:34: error: `c' was not declared in this scope ../tools.cpp:34: error: `MD5_Init' was not declared in this scope ../tools.cpp:35: error: `MD5_Update' was not declared in this scope ../tools.cpp:37: error: `MD5_DIGEST_LENGTH' was not declared in this scope ../tools.cpp:38: error: `md' was not declared in this scope ../tools.cpp:38: error: `MD5_Final' was not declared in this scope ../tools.cpp:42: error: `output' was not declared in this scope ../tools.cpp:45: error: `output' was not declared in this scope ../tools.cpp:47: error: `output' was not declared in this scope ../tools.cpp: In function `std::string transformToSHA1(std::string, bool)': ../tools.cpp:52: error: `SHA_CTX' was not declared in this scope ../tools.cpp:52: error: expected `;' before "c" ../tools.cpp:53: error: `c' was not declared in this scope ../tools.cpp:53: error: `SHA1_Init' was not declared in this scope ../tools.cpp:54: error: `SHA1_Update' was not declared in this scope ../tools.cpp:56: error: `SHA_DIGEST_LENGTH' was not declared in this scope ../tools.cpp:57: error: `md' was not declared in this scope ../tools.cpp:57: error: `SHA1_Final' was not declared in this scope ../tools.cpp:61: error: `output' was not declared in this scope ../tools.cpp:64: error: `output' was not declared in this scope ../tools.cpp:66: error: `output' was not declared in this scope ../tools.cpp: In function `std::string transformToSHA256(std::string, bool)': ../tools.cpp:71: error: `SHA256_CTX' was not declared in this scope ../tools.cpp:71: error: expected `;' before "c" ../tools.cpp:72: error: `c' was not declared in this scope ../tools.cpp:72: error: `SHA256_Init' was not declared in this scope ../tools.cpp:73: error: `SHA256_Update' was not declared in this scope ../tools.cpp:75: error: `SHA256_DIGEST_LENGTH' was not declared in this scope ../tools.cpp:76: error: `md' was not declared in this scope ../tools.cpp:76: error: `SHA256_Final' was not declared in this scope ../tools.cpp:80: error: `output' was not declared in this scope ../tools.cpp:83: error: `output' was not declared in this scope ../tools.cpp:85: error: `output' was not declared in this scope ../tools.cpp: In function `std::string transformToSHA512(std::string, bool)': ../tools.cpp:90: error: `SHA512_CTX' was not declared in this scope ../tools.cpp:90: error: expected `;' before "c" ../tools.cpp:91: error: `c' was not declared in this scope ../tools.cpp:91: error: `SHA512_Init' was not declared in this scope ../tools.cpp:92: error: `SHA512_Update' was not declared in this scope ../tools.cpp:94: error: `SHA512_DIGEST_LENGTH' was not declared in this scope ../tools.cpp:95: error: `md' was not declared in this scope ../tools.cpp:95: error: `SHA512_Final' was not declared in this scope ../tools.cpp:99: error: `output' was not declared in this scope ../tools.cpp:102: error: `output' was not declared in this scope ../tools.cpp:104: error: `output' was not declared in this scope make.exe: *** [Obj/tools.o] Error 1 Execution terminated A parte que esta dando erro Mostrar conteúdo oculto // OpenTibia - an opensource roleplaying game //////////////////////////////////////////////////////////////////////// // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. //////////////////////////////////////////////////////////////////////// #include "otpch.h" #include "tools.h" #include <iostream> #include <iomanip> #include <openssl/plain.h> #include <openssl/md5.h> #include "vocation.h" #include "configmanager.h" extern ConfigManager g_config; std::string transformToMD5(std::string plainText, bool upperCase) { MD5_CTX c; MD5_Init(&c); MD5_Update(&c, plainText.c_str(), plainText.length()); uint8_t md[MD5_DIGEST_LENGTH]; MD5_Final(md, &c); char output[MD5_DIGEST_LENGTH * 2 + 1] = ""; for(int32_t i = 0; i < static_cast<int32_t>(sizeof(md)); i++) sprintf(output, "%s%.2X", output, md); if(upperCase) return std::string(output); return asLowerCaseString(std::string(output)); } std::string transformToSHA1(std::string plainText, bool upperCase) { SHA_CTX c; SHA1_Init(&c); SHA1_Update(&c, plainText.c_str(), plainText.length()); uint8_t md[SHA_DIGEST_LENGTH]; SHA1_Final(md, &c); char output[SHA_DIGEST_LENGTH * 2 + 1] = ""; for(int32_t i = 0; i < static_cast<int32_t>(sizeof(md)); i++) sprintf(output, "%s%.2X", output, md); if(upperCase) return std::string(output); return asLowerCaseString(std::string(output)); }
Postado Fevereiro 2, 2018 7 anos Autor Em 02/02/2018 em 13:47, apollo333 disse: qual tfs esta tentando compilar e qual a versão usara do linux? oloko to compilando em windows 7 tinha baixado uma base da Nto bw e ela veio com 2 Sources e uma delas tava com effects estendido e queria compila-la
Postado Fevereiro 2, 2018 7 anos Autor @apollo333 Dboa. o pior que e so essa parte que ta me enroscando.... up?? alguem??
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.