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

WinXP:linking error with qstrtod function

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.7.1
    • 4.8.0
    • SVG Support
    • None
    • edbc656bfa5069dd40f64ae3123d6370c2d86538

    Description

      Error message displayed "" then trying to build svgviewer

      g++ -enable-stdcall-fixup -Wl,-enable-auto-import -Wl,-enable-runtime-pseudo-reloc -Wl,-subsystem
      ,console -o debug\svgviewer.exe tmp/obj/debug_static/main.o tmp/obj/debug_static/mainwindow.o tmp
      /obj/debug_static/svgview.o tmp/obj/debug_static/moc_mainwindow.o tmp/obj/debug_static/moc_svgvie
      w.o tmp/obj/debug_static/qrc_svgviewer.o -L"c:\Qt\2010.05\qt\lib" -L"c:\Qt\2010.05\qt\lib" -lQtS
      vgd -lQtXmld -lQtGuid -lgdi32 -lcomdlg32 -loleaut32 -limm32 -lwinmm -lwinspool -lmsimg32 -lQtCore
      d -lkernel32 -luser32 -lshell32 -luuid -lole32 -ladvapi32 -lws2_32
      c:\Qt\2010.05\qt\lib/libQtSvgd.a(qsvghandler.o): In function `toDouble':
      C:\Qt\2010.05\qt\src\svg/qsvghandler.cpp:642: undefined reference to `imp__Z7qstrtodPKcPS0_Pb'
      collect2: ld returned 1 exit status
      mingw32-make[1]: *** [debug\svgviewer.exe] Error 1
      mingw32-make[1]: Leaving directory `C:/Qt/2010.05/qt/examples/painting/svgviewer'
      mingw32-make: *** [debug] Error 2

      to fix:
      in file qsvghandler.cpp change
      Q_DECL_IMPORT double qstrtod(const char *s00, char const **se, bool *ok);
      to
      Q_CORE_EXPORT double qstrtod(const char *s00, char const **se, bool *ok);

      Attachments

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

        Activity

          People

            rodal Samuel Rødal
            sluge Igor Sobinov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes