Project

General

Profile

WidgetGallery is not copied into Build Folder

Added by Josh Lampco over 10 years ago

Building 3.3.1, after creating a build folder in the root folder of Wt, and running cmake ../ the widgetgallery does not get copied into build/examples. Any ideas why?


Replies (1)

RE: WidgetGallery is not copied into Build Folder - Added by Wim Dumon over 10 years ago

Hello Josh,

widgetgallery requires a C+11 compiler, and thus requires you to set -DWT_CPP_11_MODE to the appropriate flag for your compiler (for gcc: -DWT_CPP_11_MODE=-std=c+11). If you set it, please make sure that you also compile boost with the same flag.

We don't enable C+11 automatically anymore because there's no guarantee for library compatibility with C03. We're worried about boost and the standard C+ library: they don't guarantee that code compiled without the c+11 flag will work with code compiled with the C11 flag. Since most distributions (probably all of them?) don't use c11 to compile their boost, we decided to play it safe and not use C+11 by default.

Just a few links:

http://gcc.gnu.org/wiki/Cxx11AbiCompatibility

https://groups.google.com/forum/#!topic/boost-devel-archive/i33y-PTl68Q

On the other hand, we've only had real problems with Wt on a few gcc version, so you may get away with mixing C+11 and c+03 binaries.

BR,

Wim.

    (1-1/1)