Anonymous | Login | 2021-01-20 20:23 UTC | ![]() |
My View | View Issues | Change Log | Roadmap |
View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
0003147 | VCMI | Other | public | 2020-10-05 23:53 | 2020-10-06 06:22 | ||||||||
Reporter | jambolo | ||||||||||||
Assigned To | |||||||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | ||||||||
Status | new | Resolution | open | ||||||||||
Platform | MSVC | OS | OS Version | ||||||||||
Product Version | |||||||||||||
Target Version | Fixed in Version | ||||||||||||
Summary | 0003147: DLL dependency issues | ||||||||||||
Description | There are several hundred instances of this warning: warning C4251: 'type1' needs to have dll-interface to be used by clients of class 'type2' | ||||||||||||
Tags | No tags attached. | ||||||||||||
Attached Files | |||||||||||||
![]() |
|
(0007937) jambolo (reporter) 2020-10-05 23:58 |
As well as several hundred of this warning: warning C4275: non dll-interface class 'type1' used as base for dll-interface class 'type2' |
(0007938) jambolo (reporter) 2020-10-06 00:01 |
And this warning: warning C4910: 'boost::iostreams::stream<FileBuf,std::char_traits<char>,std::allocator<char>>': '__declspec(dllexport)' and 'extern' are incompatible on an explicit instantiation |
(0007939) jambolo (reporter) 2020-10-06 06:18 edited on: 2020-10-06 06:22 |
Regarding warning C4251: 'type1' needs to have dll-interface to be used by clients of class 'type2': This is a problem for C++ standard library. Because much of it is template-based, any differences in configurations (e.g. Debug vs. Release) when building the DLLs can cause bugs and crashes. Unless somebody has a better solution, the only solution I know of is to remove any C++ standard library features from the DLL interface. |
![]() |
|||
Date Modified | Username | Field | Change |
2020-10-05 23:53 | jambolo | New Issue | |
2020-10-05 23:58 | jambolo | Note Added: 0007937 | |
2020-10-06 00:01 | jambolo | Note Added: 0007938 | |
2020-10-06 06:18 | jambolo | Note Added: 0007939 | |
2020-10-06 06:22 | jambolo | Note Edited: 0007939 | View Revisions |
Copyright © 2000 - 2021 MantisBT Team |