不能在Windows服务应用程序中包含某些boost头
cannot include some boost header in windows service application
开发环境:
- 操作系统:Windows 8
- IDE: Visual Studio 2010
- Boost Version: 1.55.0
我有一个简单的应用程序,它将字符串写入文件。因为我必须运行应用程序作为windows服务,我使用windows服务api,如StartServiceCtrlDispatcher, RegisterServiceCtrlHandler等。这样一切都很好,生活也很好。但是当我在代码中包含boost头时,我有问题从net start命令启动服务。包括这个
#include <boost/filesystem.hpp>
这是我得到的错误
C:WINDOWSsystem32>net start aab
The service is not responding to the control function.
More help is available by typing NET HELPMSG 2186.
我使用sc create aab binpath="path to executable"来创建服务
我不知道boost是如何干扰的,也不知道如何调试它或找到解决方案。
似乎与boost的使用没有什么关系。
binpath=""
看起来很奇怪。如果没有二进制文件,你怎么能指望服务启动呢?
另外,如果在实际测试中这实际上是可以的,
- 检查dll依赖项(dependencywalker.com)
相关文章:
- 我应该包含什么来制作 boost.python 扩展?
- boost::包含提升单元的元组的哈希值
- boost::interprocess::managed_mapped_file 如何包含弹性向量?
- 包含来自 boost 1.73.0 的read_graphviz_new.cpp无法编译
- 错误: C1083: 无法打开包含文件:"boost/asio.hpp": 没有此类文件或目录
- C++ Boost-iostream:包含 filtering_streambuf.hpp 时出现神秘错误
- Android Studio 链接器命令在包含 Boost 库时失败
- 使用 CMake 在跨平台项目中C++包含 Boost 库
- 包含字符串的结构的 Boost 进程间向量是否需要特殊的分配器?
- 检查两个 Boost.MPL 序列是否按任何顺序包含相同的类型
- 无法在Windows中找到来自cmake的MySQL和Boost包含/库
- 如何修复"无法打开包含文件'boost/config.hpp':没有这样的文件或目录(包括目录涵盖:C:\程序文件\boost\boost_1_67_0)
- 你如何包含来自 Boost 的 initial_path()
- 调用一个 Python 函数,其中包含来自 boost Python 的可变数量的输入参数
- 不能在Windows服务应用程序中包含某些boost头
- 如何找出哪个.dylib文件包含某个boost功能?
- 已经包含了boost asio和WinSock.h
- 正在分析包含具有boost::spirit::qi的特定字符的字符串
- WinSock.h已经包含了Boost Windows Qt
- 如何包含/link boost::regex库