Nordgaren / Erd-Tools-CPP

CPP version of Erd-Tools: https://github.com/Nordgaren/Erd-Tools
GNU General Public License v3.0
20 stars 3 forks source link

build issue #11

Open summy00 opened 2 months ago

summy00 commented 2 months ago

hi, im not using vs c++ for a long time, I find this problem, but when I replace with #define __UINT32_MAX__ ((uint32_t)-1) it infoms:

error C4996 'std::codecvt_utf8<wchar_t,1114111,(std::codecvt_mode)0>': warning STL4017: std::wbuffer_convert, std::wstring_convert, and the <codecvt> header (containing std::codecvt_mode, std::codecvt_utf8, std::codecvt_utf16, and std::codecvt_utf8_utf16) are deprecated in C++17. (The std::codecvt class template is NOT deprecated.) The C++ Standard doesn't provide equivalent non-deprecated functionality; consider using MultiByteToWideChar() and WideCharToMultiByte() from <Windows.h> instead. You can define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS to suppress this warning.  Erd-Tools-CPP   E:\download_1\Erd-Tools-CPP-1.2\Erd-Tools-CPP-1.2\Erd-Tools-CPP\ErdToolsMain.cpp    136     

but define _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING or _SILENCE_ALL_CXX17_DEPRECATION_WARNINGS, same error appears, any sugguesting?

summy00 commented 2 months ago

hi, after I handle some complie errors, it promts: error LNK2005 "class std::vector<unsigned char,class std::allocator<unsigned char> > Param" (?Param@@3V?$vector@EV?$allocator@E@std@@@std@@A) readly define in ErdHook.obj Erd-Tools-CPP \Erd-Tools-CPP\Erd-Tools-CPP\ParamHook.obj 1

https://github.com/summy00/Erd-Tools-CPP/commit/6122aa066b5fe137ca1a1fa458baa8eda0795df1

Nordgaren commented 2 months ago

Build in release mode

summy00 commented 2 months ago

Build in release mode

summy00 commented 2 months ago
Nordgaren commented 2 months ago

My suggestion is to wait until I fix it...