avertuss 48 Posted February 23, 2019 Share Posted February 23, 2019 (edited) Hi. Any ideas? Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Premium tierrilopes 452 Posted February 23, 2019 Premium Share Posted February 23, 2019 Right-click "Solution 'Metin2Client_VC90' (16 projects)" Retarget solution Ok 1 Link to comment Share on other sites More sharing options...
avertuss 48 Posted February 23, 2019 Author Share Posted February 23, 2019 (edited) 2 godziny temu, tierrilopes napisał: Right-click "Solution 'Metin2Client_VC90' (16 projects)" Retarget solution Ok Thanks. @tierrilopes do you know why i have that xmemory0 errors?? Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Premium tierrilopes 452 Posted February 24, 2019 Premium Share Posted February 24, 2019 Never saw that one before actually Already defined or declared, perhaps some old code in your source that now exists in windows libraries already? I guess that pythoncore is for static python, try compiling it outside of your binary solution (no references to it or custom build steps), then place the lib in your lib folder and compile your binary source normally. Link to comment Share on other sites More sharing options...
avertuss 48 Posted February 24, 2019 Author Share Posted February 24, 2019 15 minut temu, tierrilopes napisał: Never saw that one before actually Already defined or declared, perhaps some old code in your source that now exists in windows libraries already? I guess that pythoncore is for static python, try compiling it outside of your binary solution (no references to it or custom build steps), then place the lib in your lib folder and compile your binary source normally. I found where is the problem but i don't know how to fix it. There is my post with error logs and code. Can you check? Link to comment Share on other sites More sharing options...
Premium tierrilopes 452 Posted February 24, 2019 Premium Share Posted February 24, 2019 i dont have that installed, but did you try to revert the alteration for non-c11 given and re-implement the code as it is on the tutorial? Link to comment Share on other sites More sharing options...
Honorable Member martysama0134 7178 Posted February 24, 2019 Honorable Member Share Posted February 24, 2019 "Target Platform Version" is blank. By the way, vs2015 has mostly the same abi of vs2017, so you can even think to upgrade it. Check out my GitHub Link to comment Share on other sites More sharing options...
avertuss 48 Posted February 25, 2019 Author Share Posted February 25, 2019 (edited) 16 godzin temu, martysama0134 napisał: "Target Platform Version" is blank. By the way, vs2015 has mostly the same abi of vs2017, so you can even think to upgrade it. I already fix that error but now i have problem 17> InstanceBaseEffect.cpp 17>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xmemory0(665): error C2338: The C++ Standard forbids containers of const elements because allocator<const T> is ill-formed. 17> InstanceBaseEffect.cpp(750): note: see reference to class template instantiation 'std::allocator<_Ty>' being compiled 17> with 17> [ 17> _Ty=const std::string 17> ] 17>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xmemory0(695): error C2535: 'const std::basic_string<char,std::char_traits<char>,std::allocator<char>> *std::allocator<_Ty>::address(const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &) noexcept const': member function already defined or declared 17> with 17> [ 17> _Ty=const std::string 17> ] 17> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xmemory0(689): note: see declaration of 'std::allocator<_Ty>::address' 17> with 17> [ 17> _Ty=const std::string 17> ] 17>C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xmemory0(930): error C2535: 'const std::basic_string<char,std::char_traits<char>,std::allocator<char>> *std::_Wrap_alloc<std::allocator<_Ty>>::address(const std::basic_string<char,std::char_traits<char>,std::allocator<char>> &) const': member function already defined or declared 17> with 17> [ 17> _Ty=const std::string 17> ] 17> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\xmemory0(924): note: see declaration of 'std::_Wrap_alloc<std::allocator<_Ty>>::address' 17> with 17> [ 17> _Ty=const std::string 17> ] 17> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vector(450): note: see reference to class template instantiation 'std::_Wrap_alloc<std::allocator<_Ty>>' being compiled 17> with 17> [ 17> _Ty=const std::string 17> ] 17> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vector(502): note: see reference to class template instantiation 'std::_Vec_base_types<_Ty,_Alloc>' being compiled 17> with 17> [ 17> _Ty=const std::string, 17> _Alloc=std::allocator<const std::string> 17> ] 17> C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\include\vector(680): note: see reference to class template instantiation 'std::_Vector_alloc<std::_Vec_base_types<_Ty,_Alloc>>' being compiled 17> with 17> [ 17> _Ty=const std::string, 17> _Alloc=std::allocator<const std::string> 17> ] 17> InstanceBaseEffect.cpp(750): note: see reference to class template instantiation 'std::vector<const std::string,std::allocator<_Ty>>' being compiled 17> with 17> [ 17> _Ty=const std::string 17> ] code Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Honorable Member martysama0134 7178 Posted February 27, 2019 Honorable Member Share Posted February 27, 2019 remove 'const' from std::vector and std::string (line 746) "auto itor" should be enough. Check out my GitHub Link to comment Share on other sites More sharing options...
avertuss 48 Posted February 27, 2019 Author Share Posted February 27, 2019 (edited) 2 godziny temu, martysama0134 napisał: remove 'const' from std::vector and std::string (line 746) "auto itor" should be enough. with std::map<BYTE, std::vector<std::string>>::iterator itor = g_TitleNameMap.find(iAlignmentGrade); the same error. Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Forum Moderator VegaS™ 10275 Posted February 27, 2019 Forum Moderator Share Posted February 27, 2019 #ifdef ENABLE_EXTENDED_ALIGNMENT_SYSTEM const auto itor = g_TitleNameMap.find(iAlignmentGrade); #else std::map<int, std::string>::iterator itor = g_TitleNameMap.find(iAlignmentGrade); #endif 1 Check my GitHub Profile Click to find all the threads started by me [TOOL] Text file loader + JSON Link to comment Share on other sites More sharing options...
avertuss 48 Posted February 27, 2019 Author Share Posted February 27, 2019 (edited) 4 godziny temu, VegaS™ napisał: #ifdef ENABLE_EXTENDED_ALIGNMENT_SYSTEM const auto itor = g_TitleNameMap.find(iAlignmentGrade); #else std::map<int, std::string>::iterator itor = g_TitleNameMap.find(iAlignmentGrade); #endif Yee, one error fixed but still i have this when i want to use that system. Without this system i can compile bin. Edited August 25, 2022 by Metin2 Dev Core X - External 2 Internal Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now