小编Kir*_*bov的帖子

Mingw、boost 和运行时“无法找到过程入口点”

问题

我正在使用 mingw 在 Windows 上使用 websocketpp 制作一个简单的服务器应用程序。我让我的代码编译和链接成功。但是,当我启动应用程序时,它给了我以下错误窗口:

The procedure entry point _ZNSt6chrono3_V212steady_clock3nowEv could not be located in the DLL D:\work\wild_web\a.exe
Run Code Online (Sandbox Code Playgroud)

我的设置

这是我编译和链接我的代码的方法:

g++ -std=c++11 -march=i686 d:/work/wild_web/main.cpp -o a.exe -ID:/work/libs/boost_1_61_0 -ID:/work/websocketpp-master/websocketpp-master -LD:/work/libs/boost_1_61_0/stage/lib -lboost_system-mgw49-mt-s-1_61 -lws2_32 -lwsock32 -lboost_chrono-mgw49-mt-s-1_61

Compilation finished at Sun Jul 24 16:48:09
Run Code Online (Sandbox Code Playgroud)

这就是我建立提升的方式:

b2 --build-dir=build-directory toolset=gcc --build-type=complete stage
Run Code Online (Sandbox Code Playgroud)

主.cpp:

#define _WIN32_WINNT 0x0501

#include <iostream>

#include <websocketpp/config/asio_no_tls.hpp>
#include <websocketpp/server.hpp>

#include <boost/chrono.hpp>

#include <string>
#include <sstream>
#include <vector>
#include <map>

//bunch of structs
int main() {
  //working with websocketpp
  return 0; …
Run Code Online (Sandbox Code Playgroud)

c++ boost mingw c++-chrono

3
推荐指数
1
解决办法
638
查看次数

标签 统计

boost ×1

c++ ×1

c++-chrono ×1

mingw ×1