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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P3: Somewhat important P3: Somewhat important
    • 5.2.0
    • 5.2.0
    • QPA
    • iOS7, Xcode 5.0.2
    • iOS/tvOS/watchOS

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes