Project

General

Profile

Bug #3681

Duplicate declaration warning building multi-threaded examples with cmake

Added by Bruce Toll over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
11/25/2014
Due date:
% Done:

0%

Estimated time:

Description

With github wt 3.3.3-25-g7023b38, on Debian GNU/Linux 7.7 (wheezy) with gcc-4.7.2, examples build with warnings, e.g.:

cd /home/user/x/wt-3.3.4-dbg-build/examples/blog && /usr/bin/c++   -DWT_WITH_OLD_INTERNALPATH_API -DQT_GUI_LIB -DQT_CORE_LIB -D_REENTRANT -DBOOST_SPIRIT_THREADSAFE -DWT_THREADED -D_REENTRANT -DBOOST_SPIRIT_THREADSAFE -DWT_DEPRECATED_3_0_0 -DQT_DEBUG -g -std=c++11 -DWT_DEBUG_JS=/home/user/x/wt-3.3.4/src -std=c++11 -g -I/home/user/x/wt-3.3.4-dbg-build -I/home/user/x/wt-3.3.4/src -I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/home/user/x/boost/include/boost-1_55    -DASCIIDOC_EXECUTABLE="/usr/bin/asciidoc" -o CMakeFiles/blog.wt.dir/model/BlogSession.o -c /home/user/x/wt-3.3.4/examples/blog/model/BlogSession.C
In file included from /home/user/x/wt-3.3.4/src/Wt/WDllDefs.h:11:0,
                 from /home/user/x/wt-3.3.4/src/Wt/WObject:10,
                 from /home/user/x/wt-3.3.4/src/Wt/WSignal:10,
                 from /home/user/x/wt-3.3.4/examples/blog/model/BlogSession.h:10,
                 from /home/user/x/wt-3.3.4/examples/blog/model/BlogSession.C:7:
/home/user/x/wt-3.3.4-dbg-build/Wt/WConfig.h:43:0: warning: "WT_THREADED" redefined [enabled by default]
<command-line>:0:0: note: this is the location of the previous definition

I removed -DWT_THREADED from the ADD_DEFINITIONS in examples/CMakeLists.txt, but I'm not sure if that's the correct fix.

#1

Updated by Koen Deforche over 7 years ago

  • Status changed from New to Resolved
  • Assignee set to Koen Deforche
  • Target version set to 3.3.4

That should be fixed by now.

#2

Updated by Koen Deforche over 7 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF