retdec icon indicating copy to clipboard operation
retdec copied to clipboard

BUG:vs2022 build error yaramod-project

Open cctv130 opened this issue 1 year ago • 0 comments

plain_string.cpp rule.cpp sections_summary.cpp token.cpp token_stream.cpp yara_file.cpp json.cpp filesystem_operations.cpp utils.cpp yaramod.cpp D:\code\hack\retdec\build\external\src\yaramod-project\deps\pog\include\pog/html_report.h(100,81): error C2001: newline in constant [D:\code\hack\retdec\build\external\src\yaramod-project-build\src\yaramod.vcxproj] D:\code\hack\retdec\build\external\src\yaramod-project\deps\pog\include\pog/html_report.h(101,82): error C2001: newline in constant [D:\code\hack\retdec\build\external\src\yaramod-project-build\src\yaramod.vcxproj] D:\code\hack\retdec\build\external\src\yaramod-project\deps\pog\include\pog/html_report.h(162,42): error C2001: newline in constant [D:\code\hack\retdec\build\external\src\yaramod-project-build\src\yaramod.vcxproj] D:\code\hack\retdec\build\external\src\yaramod-project\deps\pog\include\pog/html_report.h(151,18): fatal error C1075: '{': no matching token found [D:\code\hack\retdec\build\external\src\yaramod-project-build\src\yaramod.vcxproj] Generating Code...

cctv130 avatar Aug 13 '23 00:08 cctv130

After careful investigation, here's the problem In the wide character version of the windows operating system, the above error occurs After my manual experiments, I manually changed the character set of html_report.h header file to utf-8,The build result compiles is successfully

Or add the following but the project structure is a bit complicated and I don't know where to add it add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>") add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>") This problem affects the wide character operating system for project compilation

cctv130 avatar Aug 13 '23 09:08 cctv130