Project

General

Profile

wt-3.3.5 compile error

Added by Stefano Martini over 8 years ago

Hi guys,

I am a Centos user and wanted to try wt as I am a C/C programmer.

The wt RPM package available for my Centos 6 i686 is wt-3.2.2 which is too old.

I decided to install the lastest wt 3.3.5 from source. I installed boost 1.60 and folloing the installation instructions I started to install wt.

The procedure begin correctly but toward the end I got this error:

[ 95%] Building CXX object test/CMakeFiles/test.mysql.dir/dbo/DboTest.o

/root/wt/wt-3.3.5/test/dbo/DboTest.C: In member function 'void dbo_test26::test_method()':

/root/wt/wt-3.3.5/test/dbo/DboTest.C:2381: error: no matching function for call to 'ref(dbo_test26::test_method()::CheckExpected&)'

make[2]: * [test/CMakeFiles/test.mysql.dir/dbo/DboTest.o] Error 1

make[1]: * [test/CMakeFiles/test.mysql.dir/all] Error 2

make: * [all] Error 2

Does anybody have suggestions?

Thanks


Replies (3)

RE: wt-3.3.5 compile error - Added by Bruce Toll over 8 years ago

This could be related to #4669. You might want to try compiling in c++11 mode if your compiler supports it. This will also allow you to build some of the newer examples. Keep in mind that your boost library will need to be built with the same options. See also: http://redmine.webtoolkit.eu/boards/1/topics/8363.

RE: wt-3.3.5 compile error - Added by Stefano Martini over 8 years ago

Thank you for replying.

Finally I was able to compile the library using gcc version 4.8.5 on a Centos 7 x86_64.

As you suggested I compiled in c--11 mode.

Thank you.

Stefano

RE: wt-3.3.5 compile error - Added by Noob1 SurnemaeNoob over 8 years ago

On Ubuntu 16:04 comiling with C++11 worked;

cmake ../ -DWT_CPP_11_MODE:STRING="-std=c++11"
    (1-3/3)