Bug #5041
closedon 3.3.6 RC2 - 'Wt::WServer::setSslPasswordCallback': inconsistent dll linkage
Description
I get
wt\src\http\WServer.C (285): warning C4273: 'Wt::WServer::setSslPasswordCallback': inconsistent dll linkage
It may be irrelevant but I'd rather let you know.
(Visual Studio 2015 - Windows 10)
May be WT_API is missing in the declaration or may be it's getting "confused" with the main's project setSslPasswordCallback. I don't know.
Updated by Wim Dumon over 8 years ago
- Status changed from New to Feedback
- Assignee set to Wim Dumon
Hello Dennis,
I believe you're right, this is not ok. The error is in src/Wt/Server line 405, where setSslPasswordCallback() is declared WT_API while it should be WTCONNECTOR_API. Could you check if this fixes the warning (I'm not on a windows PC now)?
Part of the WServer class is implemented in wt.lib, the other part is in the connector. Therefore this classes export declarations change from one function to another.
Wim.
Updated by Dennis Felippa over 8 years ago
Using WTCONNECTOR_API eliminates the warning.
Thank you!
Dennis
Updated by Wim Dumon over 8 years ago
- Status changed from Feedback to Implemented @Emweb
Updated by Koen Deforche over 8 years ago
- Status changed from Implemented @Emweb to Resolved
Updated by Koen Deforche over 8 years ago
- Status changed from Resolved to Closed