Project

General

Profile

Problem using precompiled Wt libraries.

Added by Ronald Peer almost 13 years ago

I am able to build and run the Wt libs and examples from the by CMake created projects.

We want to use pre-built Wt .dll or .lib files in our development to reduce compile times. When I use the built libraries in our own project the webserver (http) with hello example starts as expected, and we can connect to the http daemon.

However, when navigating away from the url, or reloading the page crashes the application somewhere deep down in the destructor.

Are there any special settings that are required/needed when re-using the built .dll or .lib files within another project?

Our configuration: VS2010, CMake 2.8.9, Wt-3.2.2-p1, boost 1.51.0, Windows 7


Replies (2)

RE: Problem using precompiled Wt libraries. - Added by Wim Dumon almost 13 years ago

Hello Ronald,

Not that I am aware of, except for the usual MSVS compatibility things (/MT, /MD, /MTd, /MDd, ... stuff). Do you get any runtime compatibility warnings while linking?

A crash during the destruction of an application object may indeed point to an incompatibility in runtime libraries: a class (in case Wt widgets) created in the application and deleted by the DLL would indeed crash. Are you doing a debug build while linking against release build libraries?

BR,

Wim.

RE: Problem using precompiled Wt libraries. - Added by Ronald Peer almost 13 years ago

I will have to dive deeper into the project settings first. I just saw a number of /D entries and other differences.

The example code was copied, the dll's were copied, so I assume it is something in the project settings.

Will check the other settings you mentioned too...

Regards, Ronald

    (1-2/2)