Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-35841

iOS: global variable instantiated in main.cpp causes linker errors

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.2.0
    • Fix Version/s: 5.2.0
    • Component/s: QPA
    • Environment:
      iOS7, Xcode 5.0.2
    • Platform/s:
      iOS/tvOS/watchOS

      Description

      When trying to access global variable instantiated in main.cpp and declared as extern the linker will give symbol(s) not found error. Also global functions implemented in main.cpp are causing the same issue.

      The issue reproduces only on iOS. On other platforms the same example application is linking ok. Also if the global variable is defined somewhere else than main.cpp it will work fine.

        Attachments

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

          Activity

            People

            Assignee:
            vestbo Tor Arne Vestbø
            Reporter:
            kileppal Kimmo Leppälä
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes