Fwd: boost regex library problem with release build
I fixed the problem.
For debug: my project setting as:
C/C++ > Code Generation > Runtime LIbrary as "Multi-threaded DLL (/MD)"
But in my release setting:
C/C++ > Code Generation > Runtime LIbrary as "Multi-threaded (/MT)"
When I changed it to "Multi-threaded DLL (/MD)", then it works!
As indicated in the boost/boost/config/user.hpp, which needs _DLL flag.
Thanks,
Maggie
---------- Forwarded message ----------
From: maggie.nguyen@gmail.com
Maggie Nguyen wrote:
I fixed the problem.
For debug: my project setting as: C/C++ > Code Generation > Runtime LIbrary as "Multi-threaded DLL (/MD)"
But in my release setting: C/C++ > Code Generation > Runtime LIbrary as "Multi-threaded (/MT)"
When I changed it to "Multi-threaded DLL (/MD)", then it works!
As indicated in the boost/boost/config/user.hpp, which needs _DLL flag. Thanks, Maggie
Looks like you solved your own problem: BTW you can use /MT to build if you want, but you would obviously need to build the matching Boost.Regex lib to go with it. John.
participants (2)
-
John Maddock
-
Maggie Nguyen