# QTwchar Built In type Entry point Error

• 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

• 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.

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

Thx

• 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.

• [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.

• 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.

• 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..

• 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.

• [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

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.