Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. [Solved] Compile Release on Qt5.4RC MSVC2013: : 'default argument' : cannot convert from 'const wchar_t [1]' to 'BSTR'
Forum Updated to NodeBB v4.3 + New Features

[Solved] Compile Release on Qt5.4RC MSVC2013: : 'default argument' : cannot convert from 'const wchar_t [1]' to 'BSTR'

Scheduled Pinned Locked Moved General and Desktop
5 Posts 3 Posters 5.4k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tomasl
    wrote on last edited by
    #1

    Hi,

    I'm trying to go from Qt5.4beta MSVC2012OpenGL to Qt5.4RC1 MSVC2013 (official enterprise) to get the features presented in http://blog.qt.digia.com/blog/2014/11/27/qt-weekly-21-dynamic-opengl-implementation-loading-in-qt-5-4/.

    Compiling for debug works fine, but then trying to compile for release for debug, I get these 20 of these errors:
    C:\Program Files (x86)\Windows Kits\8.1\Include\um\WbemDisp.h:1088: error: C2440: 'default argument' : cannot convert from 'const wchar_t [1]' to 'BSTR'
    Conversion from string literal loses const qualifier (see /Zc:strictStrings)

    Ideas anyone?

    1 Reply Last reply
    0
    • T Offline
      T Offline
      tomasl
      wrote on last edited by
      #2

      I find that someone else have had this issue as well: http://stackoverflow.com/questions/26802956/vs2013-compile-for-debug-but-not-for-release

      but I can't seem to find a bugreport on it. Is this actually a bug that I should report, or are there some environment issues?

      Thanks

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tomasl
        wrote on last edited by
        #3

        This was "solved" by reverting https://qt.gitorious.org/qt/qtbase/commit/9f0e5d00ab51cc7c0dc87c8d72f48c4e6eda

        1 Reply Last reply
        0
        • R Offline
          R Offline
          raidsan
          wrote on last edited by
          #4

          Not solved? I just download and install the release version today: "Qt 5.4.0 for Windows 32-bit (VS 2013, OpenGL, 694 MB)", but the same issue occurs:

          C:\Program Files (x86)\Windows Kits\8.1\include\um\sapi.h(12407) : error C2440: default argument’ : cannot convert from ‘const wchar_t [1]’ to ‘BSTR’

          1 Reply Last reply
          0
          • B Offline
            B Offline
            BlackCloak
            wrote on last edited by
            #5

            I updated to 5.5 hoping it would fix this issue but it still happens on 5.5
            This is still and issue on 5.5, 5.4 but not 5.3 only on release builds
            using VS 2013

            1 Reply Last reply
            0

            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups
            • Search
            • Get Qt Extensions
            • Unsolved