- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我在尝试构建 cppcms 时遇到如下错误。
Error 184 error LNK2019: unresolved external symbol __imp_pcre_compile referenced in function "public: void __cdecl booster::regex::assign(class std::basic_string,class std::allocator > const &,int)" (?assign@regex@booster@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) C:\Stuff\Development\CPP\cppcms-1.0.2\build\booster\pcre_regex.objError 185 error LNK2019: unresolved external symbol __imp_pcre_exec referenced in function "public: bool __cdecl booster::regex::match(char const *,char const *,class std::vector,class std::allocator > > &,int)const " (?match@regex@booster@@QEBA_NPEBD0AEAV?$vector@U?$pair@HH@std@@V?$allocator@U?$pair@HH@std@@@2@@std@@H@Z) C:\Stuff\Development\CPP\cppcms-1.0.2\build\booster\pcre_regex.objError 186 error LNK2019: unresolved external symbol __imp_pcre_fullinfo referenced in function "public: void __cdecl booster::regex::assign(class std::basic_string,class std::allocator > const &,int)" (?assign@regex@booster@@QEAAXAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) C:\Stuff\Development\CPP\cppcms-1.0.2\build\booster\pcre_regex.objError 187 error LNK2019: unresolved external symbol __imp_pcre_malloc referenced in function "public: __cdecl booster::regex::data::data(struct booster::regex::data const &)" (??0data@regex@booster@@QEAA@AEBU012@@Z) C:\Stuff\Development\CPP\cppcms-1.0.2\build\booster\pcre_regex.objError 188 error LNK2019: unresolved external symbol __imp_pcre_free referenced in function __catch$??0data@regex@booster@@QEAA@AEBU012@@Z$0 C:\Stuff\Development\CPP\cppcms-1.0.2\build\booster\pcre_regex.objError 189 error LNK2019: unresolved external symbol __imp_htons referenced in function "public: __cdecl booster::aio::endpoint::endpoint(class std::basic_string,class std::allocator > const &,int)" (??0endpoint@aio@booster@@QEAA@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@H@Z) C:\Stuff\Development\CPP\cppcms-1.0.2\build\booster\endpoint.obj
我的环境是 Windows 7 64 位,使用 Visual Studio 2012 Professional 和 CMake 2.8.9。
对于我编译的所有内容,我都将 CMake 配置为生成适用于 VS2012 的解决方案以使用 64 位编译器。当我编译库时,我编译发布版本。
首先我编译 Zlib 1.2.7 没有问题。其次,我编译 pcre-8.31 没有问题。
然后当需要编译 cppcms-1.0.2 时,我遇到了一堆错误,正如我之前指出的那样。在 CMake 中配置 cppcms 时,我设置了 PYTHON 2.7,我使用
C:/Stuff/Development/CPP/Zlib/zlib-1.2.7/build对于我的 ZLIB_INCLUDE_DIR,只需在其末尾附加一个/Release/zlibstatic.lib 即可获得我正在使用的 ZLIB 库,但我不确定我的 PCRE 设置是否正确。
因为 PCRE 在 CMake 中有一个 include 和 include2,我不确定在它们中放什么,所以我只做了 pcre-8.31 根目录和 pcre-8.31 构建目录。对于 PCRE_LIB,我使用 pcre-8.31/build/Release/pcre.lib。
我已经删除了库的所有构建目录,甚至重新开始,但我仍然遇到这些问题,我不确定是什么导致了它们。后来发现cppcms build目录里面的booster也有解决方案,所以我先建了那个,有3个失败的项目,但大部分都成功了,但是对cppcms的构建没有影响。
如果您对我的工作还有任何疑问,请提问,我会进行编辑。
最佳答案
询问有关 cppcms 问题的最佳位置是在 cppcms 邮件列表中。在此注册: https://lists.sourceforge.net/lists/listinfo/cppcms-users
Artyom 在那里提供出色的支持服务。虽然他也是S.O.成员,并非所有 cppcms 开发人员都是,他们中的许多人也在邮件列表上提供帮助。总的来说,你会在那里得到更好的答案,特别是因为能够回答的人会更快地注意到你的问题。
关于c++ - cppcms 大量未解析的外部符号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12657186/
我在尝试构建 cppcms 时遇到如下错误。 Error 184 error LNK2019: unresolved external symbol __imp_pcre_compile refe
我们在项目中包含登录表单时遇到问题。我们按照 http://cppcms.com/wikipp/en/page/cppcms_1x_forms 中的步骤进行操作 这是表单的定义: struct Sig
我的操作系统:Mac OSX 我的 gcc 版本:4.2.1 我的 clang 版本:llvm 6.1.0 cppcms 版本:1.0.5 我下载了 cppcms 框架并安装了框架。命令:cd cpp
尽管我已经安装了 open ssl,但它找不到库在哪里。 openssl 默认存在于我的 Ubuntu 中,它仍然找不到,所以我下载了一个新的发行版并将其重新安装到/usr/local/ssl 。我通
我一直在寻找具有高性能目标的 C++ Web 框架。我发现了它,我不确定它是否支持 Unicode,因为我看到它的一些示例使用 std:string 进行渲染。有人将它与 Unicode 输出一起使用
我正在尝试使用 CppCms 的一个简单示例,我想执行与 Web 应用程序根目录相关的所有应用程序。我不想执行相对于脚本路径的应用程序。 Ex localhost: 8080/script-path/
我正在创建一个小型事实站点作为实验,以使用 cppcms 从 C++ 创建一个极其高效的网站。 我在决定如何为模板访问创建 base_content 类时遇到问题。 在我的类结构中,我创建了一个名为
我正在尝试使用 CppCMS,我已经让静态的“Hello World”正常工作。但是,我很难使 URL 映射正常工作。我确定我很傻并且错过了一些明显的东西。 我遇到的问题是 URL 似乎不起作用。当我
在this tutorial ,它说: Dynamic linking is a little bit more tricky, but it is much more powerful as it
CppCMS 看起来不错..但是你知道任何由 CppCMS 支持的实时网站吗? 最佳答案 首先看一下这个页面:http://cppcms.sourceforge.net/wikipp/en/page/
我正在尝试在 Linux(Debian 发行版)上使用 cppcms 框架。 我按照网站上构建教程中描述的步骤进行操作,然后尝试构建 hello world 应用程序。 我已经成功编译了源代码,但是当
我正在开发一个 CppCMS 应用程序,用于在基于 ARM 的定制板上运行。我使用 fastcgi 在 Lighttpd 后面运行 CppCMS。但显然 CppCMS 比 Lighttpd 消耗更多的
来自 http://cppcms.com/wikipp/en/page/cppcms_1x_tut_url_mapping 改写后hello.cpp代码如下: #include #include
我使用此代码来运行异步。服务器: int main(int argc, char ** argv) { cppcms::service service(argc, argv); booster
我开始使用 cppcms 制作一个简单的网站 + “服务”,它从以下路径获取输入:/maindb/2012/11/2/finalists/.... 现在我注意到漂亮的 url 处理只有一个正则表达式调
我知道Wt是其中最稳定的,就是用起来有点不舒服。 CppCMS听起来不错,但它有多稳定?它有多安全? 我遇到过C++ Server Pages也一样,但那里没有任何关于他们的安全性。 有没有人对这些库
我在使用 cppcms 时遇到问题 hello world example带有 url 映射。 我在理解这部分时遇到了问题: int main(int argc,char ** argv) {
我想用 CppCMS 构建一个“Hello World”应用程序,但现在我不得不面对一些问题。我尝试使用 MS 解决方案,现在我知道它不受支持。但同时我也注意到有一些不存在的包含,例如:cppcms/
来自 http://cppcms.com/wikipp/en/page/cppcms_1x_tut_hello_templates 我正在按照教程进行操作,下面是我所做的。 在content.h中:
我是一名优秀的程序员,十分优秀!