Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-5848 Make Qt for Symbian build with RVCT4
  3. QTBUG-9903

Various private imports in Qt modules are not declared with appropriate __declspec(dllimport) statements

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Done
    • Not Evaluated
    • 4.6.3
    • 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

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              iacampbe Iain (Inactive)
              iacampbe Iain (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes