Unresolved external symbol _pcre_free

For help with anything that CEGUI doesn't offer straight out-of-the-box, e.g.:
- Implementation of new features, such as new Core classes, widgets, WindowRenderers, etc. ...
- Modification of any existing features for specific purposes
- Integration of CEGUI in new engines or frameworks and writing of new plugins (Renderer, Parser, ...) or modules

Moderators: CEGUI MVP, CEGUI Team

User avatar
BradDaBug
Not too shy to talk
Not too shy to talk
Posts: 23
Joined: Sat Apr 09, 2005 00:56

Unresolved external symbol _pcre_free

Postby BradDaBug » Mon May 29, 2006 05:37

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?

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Mon May 29, 2006 06:56

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.

User avatar
BradDaBug
Not too shy to talk
Not too shy to talk
Posts: 23
Joined: Sat Apr 09, 2005 00:56

Postby BradDaBug » Mon May 29, 2006 14:45

I tried that package, and the pcre thing went away. But now the compiler is complaining about not being able to find stlport_vc7_static.lib. Was it supposed to be in the package? Or can I compile it myself?

User avatar
scriptkid
Home away from home
Home away from home
Posts: 1178
Joined: Wed Jan 12, 2005 12:06
Location: The Hague, The Netherlands
Contact:

Postby scriptkid » Tue May 30, 2006 09:15

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!

User avatar
granx
Quite a regular
Quite a regular
Posts: 80
Joined: Fri Apr 29, 2005 21:58

Postby granx » Wed Oct 11, 2006 20:43

How was PCRE built? Who made the dependency package? Is it magic or is it built like other libraries, with a compiler? :shock:

User avatar
lindquist
CEGUI Team (Retired)
Posts: 770
Joined: Mon Jan 24, 2005 21:20
Location: Copenhagen, Denmark

Postby lindquist » Thu Oct 12, 2006 11:07

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

mrGREEN
Just popping in
Just popping in
Posts: 12
Joined: Wed Apr 01, 2009 12:49

Postby mrGREEN » Fri Apr 03, 2009 08:12

I now, it's a very old topic. But I'm interest in building PCRE. I would like to embedded the lib for my project. I'm working on mvs2008.

Jamarr
CEGUI MVP
CEGUI MVP
Posts: 812
Joined: Tue Jun 03, 2008 23:59
Location: USA

Postby Jamarr » Fri Apr 03, 2009 15:10

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.

mrGREEN
Just popping in
Just popping in
Posts: 12
Joined: Wed Apr 01, 2009 12:49

Postby mrGREEN » Sun Apr 05, 2009 21:15

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

lcy03406
Not too shy to talk
Not too shy to talk
Posts: 26
Joined: Fri Apr 24, 2009 01:18

Re: Unresolved external symbol _pcre_free

Postby lcy03406 » Sun Apr 26, 2009 00:19

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