问题描述
- websocketpp vs2008 配置
- 在使用一个websocketpp 的类库实现 websocket 功能, 类库在c++ 11 中运行正常,在VC下运行,还需要配置,官方给出如下提示,谁能介绍一下具体怎么操作,谢谢.
## Debug client example##Import('env')Import('env_cpp11')Import('boostlibs')Import('platform_libs')Import('polyfill_libs')Import('tls_libs')env = env.Clone ()env_cpp11 = env_cpp11.Clone ()prgs = []# if a C++11 environment is available build using that otherwise use boostif env_cpp11.has_key('WSPP_CPP11_ENABLED'): ALL_LIBS = boostlibs(['system']env_cpp11) + [platform_libs] + [polyfill_libs] + [tls_libs] prgs += env_cpp11.Program('debug_client' [""debug_client.cpp""] LIBS = ALL_LIBS)else: ALL_LIBS = boostlibs(['system''random']env) + [platform_libs] + [polyfill_libs] + [tls_libs] prgs += env.Program('debug_client' [""debug_client.cpp""] LIBS = ALL_LIBS)Return('prgs')
解决方案
VC中对C++支持还不够友好,VS20122013都只支持一部分
时间: 2025-01-21 12:32:16