简体   繁体   English

C ++-如何在DevC ++中使用PCRE

[英]C++ - How to use PCRE with DevC++

i don't know anymore about PCRE to get work in my project at DevC++. 我不再了解PCRE,无法在DevC ++的项目中工作。 it always produce error code when i do some function like this : 当我做这样的一些功能时,它总是产生错误代码:

#include <pcre.h>

and did you know, its not about no such file or directory bla... bla... but it say Linker error , i searching, googling and try some tutorials, and read documentation too. 而且您知道吗,它不是no such file or directory bla... bla...但是它说的是Linker error ,我正在搜索,谷歌搜索并尝试一些教程,还阅读了文档。 The result is 0. i wonder why people so easy to fix this problem. 结果为0。我想知道为什么人们这么容易解决此问题。 The stupid me. 愚蠢的我。 Maybe you smarter than me. 也许你比我聪明。

So please help me now ? 所以,请现在帮我吗?

and the point 还有一点

Question: How to fix this problem, I use De 问题:如何解决此问题,我使用De

Linker errors usually mean you have the definition of a function, but not it's implementation. 链接器错误通常意味着您已经定义了一个函数,但没有实现。 In this case, as in most, you included the header file containing the function definitions of pcre but you did not link the library. 在大多数情况下,在这种情况下,您包括了包含pcre函数定义的头文件,但未链接该库。 You should link the library (project options) and recompile. 您应该链接库(项目选项)并重新编译。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM