Closed thelfer closed 7 years ago
Hello,
Thanks for the issue report. Please try the following code:
#include <boost/dll/shared_library.hpp>
#include <boost/dll/library_info.hpp>
#include <iostream>
int main(void) {
boost::dll::library_info i("./MFrontCastemBehaviours.dll", false);
}
The second parameter in that sample is throw_if_not_native_format
Please, tell me about results of your experiment.
Hi,
does not seem to change anything.
Indeed, this argument is considered after the call to boost::dll::detail::elf_info64::parsing_supported
and throws an exception derived from boost::exception
.
Regards
That's interesting. I'll take a look soon.
Thanks. If I can be of any help, do not hesitate. BTW, once this issue will be solved, this dll will be used to open a new one: under Windows, only the imported symbols seems returned by the symbols() method, not the exported ones (however I need to strengthen this point since I don't have access to my Windows box now, this is reason why I tried to read this dll from Linux). Note that if I take the MFrontCastemBehaviours.so shared library generated by the same project under Linux, everything works as expected. Regards, Thomas
Congratulations! You're the first one who queried .dll files on 64 bit Linux.
Fixed issue in 9bfe5dd. Tested with getting symbols and sections - worked well.
Great thanks for the issue report.
Thanks at lot for your work and the fix. Regards, Thomas
Fixed a little bit more in 6b566b0
Dear developpers,
First, let me thank you all for creating this very usefull library.
I tried to read a dll file under Linux. I am using Boost 1.63 under Debian Jessie with gcc 4.9.2.
The test is the following:
This test fails with the following exception:
Under gdb, we see that something goes wrong in boost::dll::detail::pe_info::parsing_supported.
The DLL that is tested comes from the unit-tests of my project and has been generated with Visual Studio 2015. This DLL works as expected under windows so I don't expect that the issue is related to that specific DLL.
With kind regards, Thomas Helfer
MFrontCastemBehaviours.dll.zip