Build boost RegEx

I am using the boost library in the persistO ORM with the new C++ features. Everything was working good until I decided to use the ‘RegEx” library to search & replace text in a string. My assumption was that it will just work by adding the library link, like all other boost features were working but it didn’t. I searched the internet and found out that I will need to build the library with my compiler. I couldn’t find any good link to do it easily, except the link which gave a clue to right direction.

I needed the following steps from this article to get it fixed:

  1. Ran “Visual Studio Command Prompt” from tools folder in my VS installation as admin
  2. cd’ed to boost root
  3. Run bootstrap.bat from command line

It took 15-20 minutes for the compiler to compile the whole thing and at the end it generated the library files in:

<boost root>\stage\lib

The next change I required was to change the following libs name:

libboost_regex-vc-mt-1_49          ->   libboost_regex-vc110-mt-1_49
libboost_regex-vc-mt-gd-1_49     ->     libboost_regex-vc110-mt-gd-1_49

Then add the “\stage\lib” path to the project library path.

Advertisements

About prres

I have been working with Microsoft Tools and Technologies for 9 years. Most of my work include architecting and developing with C#, ASP.Net, Silverlight and SQL Server.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: