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. QTwchar Built In type Entry point Error
Qt 6.11 is out! See what's new in the release blog

QTwchar Built In type Entry point Error

Scheduled Pinned Locked Moved General and Desktop
9 Posts 2 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.
  • D Offline
    D Offline
    DaxQT
    wrote on last edited by
    #1

    Hi,

    I have an application that must be compiled with Treat wchar_t as Built-in Type options setting to YES.

    I have modify the file qmake.conf with the options: QMAKE_CFLAGS = -nologo -Zm200 -Zc:wchar_t and I have compile QT.

    After this operation my applicatin is compiled correctly without error.

    My problem is the execution: when I run it I have this error:

    "The procedure entry poin ?fromWCharArray@QString@@SA?AV1@PGB@Z could not be located in the dynamic link library QtCored4.dll"

    I have read output windows and my exe load the corret file: QTDIR\bin\QtCored4.dll where QTDIR is correct.

    Can anyone help me pls?

    It's correct compiled QT with options -Zc:wchar_t? I have forgot something??

    Thx, bye

    Ps. I'm working in Windows 7 64 bit with Visual Studio 2005, qt version 4.6.2, qt-vs-Addin-1.1.7

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      I suspect you need to compile Qt by hand and have it use the same wchar settings. The settings seems to change the "signature" of wchar based types, so that Qt libs compiled without the switch are not compatible.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • D Offline
        D Offline
        DaxQT
        wrote on last edited by
        #3

        Mmmm ok,
        can you tell me how I can compile by hand Qt? Can you suggest me some tutorials?

        Thx

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goetz
          wrote on last edited by
          #4

          There is - surprise! - an "Installation Guide":http://doc.trolltech.com/4.7/install-win.html in the qt docs on "http://doc.trolltech.com/":http://doc.trolltech.com/.

          You'll have to figure out how to set your special flags in the configure phase, configure -help should give you some hints; as far as I remember there are some cflags/cppflags that should do the trick.

          http://www.catb.org/~esr/faqs/smart-questions.html

          1 Reply Last reply
          0
          • D Offline
            D Offline
            DaxQT
            wrote on last edited by
            #5

            [quote]
            I have modify the file qmake.conf with the options: QMAKE_CFLAGS = -nologo -Zm200 -Zc:wchar_t and then I have compile QT.
            [/quote]

            I have just compile qt by hand with this option but doesn't work.

            1 Reply Last reply
            0
            • G Offline
              G Offline
              goetz
              wrote on last edited by
              #6

              I doubt that modifying qmake.conf is enough. You should at least modify one of the files in the mkspec dir or put it on the configure command line.

              Also, less than 10 minutes to completely compile Qt is far too less. On an 8-core Mac it takes approximately 30 Minutes. Back, when I compiled it by hand on a not-so-slow windows box, it took about 2 or 3 hours or even more, I can remember.

              http://www.catb.org/~esr/faqs/smart-questions.html

              1 Reply Last reply
              0
              • D Offline
                D Offline
                DaxQT
                wrote on last edited by
                #7

                Wait wait..

                [quote]
                I doubt that modifying qmake.conf is enough. You should at least modify one of the files in the mkspec dir or put it on the configure command line.
                [/quote]

                This file is in mkspec: QTDIR\4.6.2\mkspecs\win32-msvc2005.

                [quote]
                Also, less than 10 minutes to completely compile Qt is far too less. On an 8-core Mac it takes approximately 30 Minutes. Back, when I compiled it by hand on a not-so-slow windows box, it took about 2 or 3 hours or even more, I can remember.
                [/quote]

                Yesterday I have compile Qt (2 h 30m) with this options..

                1 Reply Last reply
                0
                • G Offline
                  G Offline
                  goetz
                  wrote on last edited by
                  #8

                  Ah, sorry, missed that with qmake in the very first post.

                  2:30 for a complete compilation seems reasonable, that's ok.

                  I don't know the reasons why the Trolls did switch of this switch and if Qt can be compiled this way at all.

                  http://www.catb.org/~esr/faqs/smart-questions.html

                  1 Reply Last reply
                  0
                  • D Offline
                    D Offline
                    DaxQT
                    wrote on last edited by
                    #9

                    [quote]
                    Ah, sorry, missed that with qmake in the very first post.
                    [/quote]

                    No problem

                    [quote]
                    I don’t know the reasons why the Trolls did switch of this switch and if Qt can be compiled this way at all.
                    [/quote]

                    :( me too, this is the problem

                    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