We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug error LNK2019: unresolved external symbol "public: bool __cdecl LIEF::ELF::Binary::has_interpreter(void)const "
To Reproduce I select LIEF_EXAMPLES and LIEF_PE in CMake tool. Then try to compile pe_reader project in Visual Studio C++.
Build started at 9:14 AM... 1>------ Build started: Project: lief_utfcpp (ExternalProjectTargets\lief_utfcpp\lief_utfcpp), Configuration: Debug x64 ------ 2>------ Build started: Project: lief_spdlog_project (ExternalProjectTargets\lief_spdlog_project\lief_spdlog_project), Configuration: Debug x64 ------ 3>------ Build started: Project: lief_span (ExternalProjectTargets\lief_span\lief_span), Configuration: Debug x64 ------ 4>------ Build started: Project: lief_mbed_tls (ExternalProjectTargets\lief_mbed_tls\lief_mbed_tls), Configuration: Debug x64 ------ 5>------ Build started: Project: lief_frozen (ExternalProjectTargets\lief_frozen\lief_frozen), Configuration: Debug x64 ------ 6>------ Build started: Project: lief_expected (ExternalProjectTargets\lief_expected\lief_expected), Configuration: Debug x64 ------ 7>------ Build started: Project: pe_reader, Configuration: Debug x64 ------ 7>Building Custom Rule D:/xxxxxxxxx/LIEF/examples/cpp/CMakeLists.txt 7>pe_reader.cpp 7>LIEF.lib(Header.cpp.obj) : error LNK2019: unresolved external symbol "public: bool __cdecl LIEF::ELF::Binary::has_interpreter(void)const " (?has_interpreter@Binary@ELF@LIEF@@QEBA_NXZ) referenced in function "public: static class LIEF::Header __cdecl LIEF::Header::from(class LIEF::ELF::Binary const &)" (?from@Header@LIEF@@SA?AV12@AEBVBinary@ELF@2@@Z) 7>D:\LIEF\examples\cpp\Debug\pe_reader.exe : fatal error LNK1120: 1 unresolved externals 7>Done building project "pe_reader.vcxproj" -- FAILED. ========== Build: 6 succeeded, 1 failed, 2 up-to-date, 0 skipped ========== ========== Build completed at 9:14 AM and took 01.776 seconds ==========
Expected behavior A clear and concise description of what you expected to happen (if applicable)
Environment (please complete the following information):
Additional context Add any other context about the problem here.
NOTICE
If the issue does not contain enough information to be reproduced, it will be flagged as incomplete and closed.
/NOTICE
The text was updated successfully, but these errors were encountered:
Which version of VS are you using?
Sorry, something went wrong.
VS 2022 - so I open the project generated by the CMake tool. By the way, I just discovered the workaround: to select also the ELF in CMake tool.
romainthomas
No branches or pull requests
Describe the bug
error LNK2019: unresolved external symbol "public: bool __cdecl LIEF::ELF::Binary::has_interpreter(void)const "
To Reproduce
I select LIEF_EXAMPLES and LIEF_PE in CMake tool. Then try to compile pe_reader project in Visual Studio C++.
Expected behavior
A clear and concise description of what you expected to happen (if applicable)
Environment (please complete the following information):
Additional context
Add any other context about the problem here.
NOTICE
If the issue does not contain enough information to be reproduced,
it will be flagged as incomplete
and closed.
/NOTICE
The text was updated successfully, but these errors were encountered: