Hi Wim,

>> This piece of code is at the intended location. What version of Wt are
>> you using? What error does the compiler report? What version of msvc?

The error is a conflict between MessageBox (as in Win32 API MessageBox) and
Ext::MessageBox. Including the windows header before all the other headers
and undefining MessageBox (which at the first point is Win32 MessageBox and
not Ext::MessageBox) fixes this conflict.

I`m actually making a clean Wt build. That is, downloaded Wt 3.1.0, OpenSSL,
libGD and zLib, used CMake to create the project files and compiled the
solution. In no moment I have changed any of Wt`s source code and included
windows headers myself. I`m using Microsoft Visual Studio 2008, compiler and
IDE info below:

Version 9.0.21022.8 RTM
Microsoft .NET Framework
Version 3.5 SP1
Installed Edition: Enterprise
Microsoft Visual C++ 2008   91899-270-3300834-60102

I now believe that this problem is somehow related to the other problems I`m
having with the std::max/min conflict and there is an alien include
somewhere which leads to WinDef.h.

>> In cmake, you should set GD_DIR. GD_DIR/include will be searched for
>> gd.h, GD_DIR/lib will be searched for gd.lib. If you correct the path
>> manually, GD_INCLUDE_DIRS (with S) is used in the build.

Oh, I did not have this problem with 2.99.5 but good to know, I`ll set
GD_DIR from now on only.

Regards,
Daniel.
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
witty-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/witty-interest

Reply via email to