Skip to content

Conversation

@ko1N
Copy link
Contributor

@ko1N ko1N commented Mar 31, 2022

When trying to compile NativeCore/Unix on my System i encountered this compilation error:

EnumerateRemoteSectionsAndModules.cpp: In function 'void EnumerateRemoteSectionsAndModules(RC_Pointer, void (*)(EnumerateRemoteSectionData*), void (*)(EnumerateRemoteModuleData*))':
EnumerateRemoteSectionsAndModules.cpp:53:29: error: invalid 'static_cast' from type 'std::__cxx11::basic_stringstream<char>' to type 'std::stringstream&' {aka 'std::__cxx11::basic_stringstream<char>&'}
   53 |         std::ifstream input(static_cast<std::stringstream&>(std::stringstream() << "/proc/" << reinterpret_cast<intptr_t>(handle) << "/maps").str());
      |                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Additionally libdl.so is not needed for dlopen/dlsym/dlclose anymore as it was moved in libc. However libc might not be the best choice hence I decided to link it to __Internal which should give better results on more configurations.

@KN4CK3R
Copy link
Member

KN4CK3R commented Mar 31, 2022

Great thanks!

@KN4CK3R KN4CK3R merged commit 961e015 into ReClassNET:master Mar 31, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants