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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.2.0
    • 5.2.0
    • QPA
    • iOS7, Xcode 5.0.2
    • 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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: