Details
-
Bug
-
Resolution: Done
-
P4: Low
-
4.8.0
-
None
-
MSVS 2010
Description
When exporting C code within a DLL, Q_DECL_EXPORT is undefined as qglobal.h nests this within a __cplusplus conditional. But it is valid to use __declspec(dllexport) within the "extern 'C' {}" declaration. See the following references:
MSVS: http://msdn.microsoft.com/en-us/library/aa278942(v=vs.60).aspx)
GCC: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18479
Propose Q_DECL_EXPORT and Q_DECL_IMPORT definitions be moved outside the __cplusplus conditional.