Details
-
Sub-task
-
Resolution: Done
-
Not Evaluated
-
None
-
None
-
Symbian environment supporting RVCT4 (I'm using patched Symbian^3), Raptor supporting RVCT4 (I'm using 2.12.5), RVCT4 build 733 beta or later (to fix other issues)
Description
In lots of places people have assumed extern is enough to import a symbol from another module. On DLL-based platforms this isn't enough (you need __declspec(dllimport)), and RVCT4 is far stricter about this than RVCT2.2. Fixes are something like:
-extern double qstrtod(const char *s00, char const **se, bool *ok);
+Q_DECL_IMPORT extern double qstrtod(const char *s00, char const **se, bool *ok);
A similar issue exists when exporting a symbol from a module - extern is not enough, it needs to be __declspec(dllexport), in all locations, including references as well as definitions.
Attachments
Issue Links
- relates to
-
QTBUG-9998 More private symbols imports in Qt modules need fixing in 4.7
-
- Closed
-