I checked out the lastest 0.5 code from svn and installed the version of pcre that's provided from GnuWin32 (http://gnuwin32.sourceforge.net/packages/pcre.htm). When I try to build CEGUI using Visual C++ 2003 I get this error:
unresolved external symbol _pcre_free referenced in function "public: void __thiscall CEGUI::RegexValidator::release(void)"
Has anyone else run across this? Do I have to compile pcre myself?
Unresolved external symbol _pcre_free
Moderators: CEGUI MVP, CEGUI Team
- scriptkid
- Home away from home
- Posts: 1178
- Joined: Wed Jan 12, 2005 12:06
- Location: The Hague, The Netherlands
- Contact:
Hi,
there are some issues with compiling Pcre yourselves (mainly caused bu different versions). But you might try this dependency package, which contains a version which seems to work: http://prdownloads.sourceforge.net/cray ... p?download
HTH.
there are some issues with compiling Pcre yourselves (mainly caused bu different versions). But you might try this dependency package, which contains a version which seems to work: http://prdownloads.sourceforge.net/cray ... p?download
HTH.
- scriptkid
- Home away from home
- Posts: 1178
- Joined: Wed Jan 12, 2005 12:06
- Location: The Hague, The Netherlands
- Contact:
Ah sorry i should have added the forum topic as well:
http://www.cegui.org.uk/phpBB2/viewtopi ... light=pcre
You have to ignore the stlport_vc7_static.lib in your project's linker options.
Good luck!
http://www.cegui.org.uk/phpBB2/viewtopi ... light=pcre
You have to ignore the stlport_vc7_static.lib in your project's linker options.
Good luck!
- lindquist
- CEGUI Team (Retired)
- Posts: 770
- Joined: Mon Jan 24, 2005 21:20
- Location: Copenhagen, Denmark
CE did vc7.1 and I did vc8.0. PCRE is the hardest library to build.
I will share my premake.lua which I personally used. It provides a prebuild option which will fix the config.h stuff, but you still need to generate pcre_chartables.c (check the non-unix readme).
to remove the debug messages look in pcre_internal.h and fix the DPRINTF macro.
HTH
I will share my premake.lua which I personally used. It provides a prebuild option which will fix the config.h stuff, but you still need to generate pcre_chartables.c (check the non-unix readme).
to remove the debug messages look in pcre_internal.h and fix the DPRINTF macro.
HTH
You did not specify what, if any, problems you had when trying to build PCRE. Since this topic is 3y old, I doubt it is even remotely close to being relevant.
I built a static-lib version of PCRE (latest version as of 10/2008) without much trouble; I think you just need cmake to create the project files.
I built a static-lib version of PCRE (latest version as of 10/2008) without much trouble; I think you just need cmake to create the project files.
You are right
Well let me start with the problem that I got when I was trying to build my project. I got this warning with mvs9.0
pcre_d.lib(pcre_chartables.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with
That's why I decide to rebuild pcre. Well, let me find some info about using cmake under windows, since I never used before.
Thanks
EDIT
OK, using CMAKE I was able to rebuild pcre and now I don't have the warning. Thanks
Well let me start with the problem that I got when I was trying to build my project. I got this warning with mvs9.0
pcre_d.lib(pcre_chartables.obj) : warning LNK4099: PDB 'vc90.pdb' was not found with
That's why I decide to rebuild pcre. Well, let me find some info about using cmake under windows, since I never used before.
Thanks
EDIT
OK, using CMAKE I was able to rebuild pcre and now I don't have the warning. Thanks
Re: Unresolved external symbol _pcre_free
Maybe your pcre.lib is not a static lib but an import lib for some pcre.dll. remove /D "PCRE_STATIC" in CEGUI, or recompile pcre with PCRE_STATIC defined.
Return to “Modifications / Integrations / Customisations”
Who is online
Users browsing this forum: No registered users and 4 guests