Sign in to follow this  
landagen

Trouble compiling CEGUI 64 bit

Recommended Posts

landagen    376

I am trying to compile CEGUI in 64 bit VS 2012 and I am running into linking errors, but I cannot figure out why.  The linking errors are as follows:

 

 

PCRERegexMatcher.obj : error LNK2019: unresolved external symbol __imp_pcre_compile referenced in function "public: virtual void __cdecl CEGUI::PCRERegexMatcher::setRegexString(class CEGUI::String const &)" (?setRegexString@PCRERegexMatcher@CEGUI@@UEAAXAEBVString@2@@Z)
2>PCRERegexMatcher.obj : error LNK2019: unresolved external symbol __imp_pcre_exec referenced in function "public: virtual enum CEGUI::RegexMatcher::MatchState __cdecl CEGUI::PCRERegexMatcher::getMatchStateOfString(class CEGUI::String const &)const " (?getMatchStateOfString@PCRERegexMatcher@CEGUI@@UEBA?AW4MatchState@RegexMatcher@2@AEBVString@2@@Z)
2>PCRERegexMatcher.obj : error LNK2001: unresolved external symbol __imp_pcre_free
 
I am attempting to statically link against the pcre_d.lib file which contains the suspected missing definitions. The thing that is throwing me off is that based on the __imp_ prefix it indicates to me CEGUI is looking for a dynamic link instead of using the static link, but I don't know how to tell it otherwise or maybe I am misunderstanding everything.  Any help would be greatly appreciated.  Thanks.  

Share this post


Link to post
Share on other sites
landagen    376

Well of course right after I post my question, I finally found the answer.  There was a define in the CEGUI adding the extern __declspec(dllimport) to the method declaration.  Thanks.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this