Wt:致命错误:调用空boost :: function

时间:2016-02-11 07:49:22

标签: c++ boost wt

我正在努力建立" Wt"我自己的库(在版本3.3.5中),但是当我尝试运行Example时失败了。

我的环境是一个带有Boost 1.53.0的Debian,我想为它构建库。

编译和链接(gcc 4.7.2)效果很好,但是当我尝试运行Wt-Example(http://www.webtoolkit.eu/wt/doc/tutorial/wt.html)时,服务器失败了:

Wt:致命错误:调用空的boost :: function

完整日志是:

foo@rtm:/tmp/$ wt_test --docroot .  --http-address 0.0.0.0 --http-port 9090
Option no-compression is implied because wthttp was built without zlib support.
[2016-Feb-11 10:35:29.326974] 6436 - [info] "config: reading Wt config file: /etc/wt/wt_config.xml (location = 'wt_test')"
Option no-compression is implied because wthttp was built without zlib support.
[2016-Feb-11 10:35:29.327938] 6436 - [info] "WServer/wthttp: initializing built-in wthttpd"
[2016-Feb-11 10:35:29.328281] 6436 - [info] "wthttp: started server: http://0.0.0.0:9090"
[2016-Feb-11 10:35:33.971973] 6436 - [info] "Wt: session created (#sessions = 1)"
[2016-Feb-11 10:35:33.972423] 6436 [/ mZ4BIN0ZPoVnqQTG] [info]     "WEnvironment: UserAgent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:44.0)     Gecko/20100101 Firefox/44.0"
10.12.5.50 - - [2016-Feb-11 10:35:33.974561] "GET / HTTP/1.1" 200 4691
[2016-Feb-11 10:35:33.974722] 6436 - [info] "WebRequest: took 3.044ms"
[2016-Feb-11 10:35:34.026134] 6436 [/ mZ4BIN0ZPoVnqQTG] [error] "Wt: fatal error: call to empty boost::function"
[2016-Feb-11 10:35:34.026242] 6436 - [info] "WebController: Removing session mZ4BIN0ZPoVnqQTG"
[2016-Feb-11 10:35:34.026293] 6436 [/ mZ4BIN0ZPoVnqQTG] [info] "Wt: session destroyed (#sessions = 0)"
10.12.5.50 - - [2016-Feb-11 10:35:34.026374] "GET /?wtd=mZ4BIN0ZPoVnqQTG&sid=2063522618&webGL=true&scrW=1680&scrH=1050&tz=60&htmlHistory=true&deployPath=%2F&request=script&rand=4063601615 HTTP/1.1" 500 84
10.12.5.50 - - [2016-Feb-11 10:35:34.026375] "GET /?wtd=mZ4BIN0ZPoVnqQTG&request=style&page=1 HTTP/1.1" 200 0
[2016-Feb-11 10:35:34.026414] 6436 - [info] "WebRequest: took 0.5ms"
[2016-Feb-11 10:35:34.026430] 6436 - [info] "WebRequest: took 30.593ms"

有没有人知道如何找出这里出了什么问题?

我知道Boost版本不是最新的,但我想这不应该是一个问题吗?

Regads, VanDahlen

1 个答案:

答案 0 :(得分:0)

我收到了这个警告:

  

<compilation debug="true" targetFramework="4.5.2"> <assemblies> <add assembly="System.Data.Entity, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /> </assemblies> </compilation>

这看起来可能与事情有很大关系。

那就是说,它只是在我的Ubuntu盒子上使用g ++ - 5在valgrind下干净运行。 (使用libc ++时无法链接)