Building PCRE on windows.
Posted: Wed Oct 11, 2006 18:53
Hi, I wanted to build PCRE from scratch so that I knew what compile options were being used. I am working on Windows with Visual Studio and I found the PCRE doesn't have an official build solution for this compiler. However, they have some user contributions and I found this one quite helpful.
So, with PCRE finally built with MSVC, I tried to build CEGUI's SVN trunk, which is from last week sometime. I made sure the CEGUIBase project file would locate the dependencies' headers/libraries. I get this error upon linking CEGUIBase, release build:
unresolved external symbol _pcre_free referenced in function "public: void __thiscall CEGUI::RegexValidator::release(void)" (?release@RegexValidator@CEGUI@@QAEXXZ)
I looked for that 'pcre_free' symbol in the PCRE source code (pcre.h), and it is defined differently for builds that have the preprocessor macro "VPCOMPAT" defined, which appears to be for the Virtual Pascal support. Why am I seeing this link error when building CEGUI? Does it make sense to just add this preprocessor and rebuild PCRE?
So, with PCRE finally built with MSVC, I tried to build CEGUI's SVN trunk, which is from last week sometime. I made sure the CEGUIBase project file would locate the dependencies' headers/libraries. I get this error upon linking CEGUIBase, release build:
unresolved external symbol _pcre_free referenced in function "public: void __thiscall CEGUI::RegexValidator::release(void)" (?release@RegexValidator@CEGUI@@QAEXXZ)
I looked for that 'pcre_free' symbol in the PCRE source code (pcre.h), and it is defined differently for builds that have the preprocessor macro "VPCOMPAT" defined, which appears to be for the Virtual Pascal support. Why am I seeing this link error when building CEGUI? Does it make sense to just add this preprocessor and rebuild PCRE?