Opened 14 years ago
Closed 14 years ago
#2282 closed Bugs (invalid)
"Link to Boost" example in "Getting Started": msvc-8.0 Debug build with DLL runtime does not run
Reported by: | Owned by: | John Maddock | |
---|---|---|---|
Milestone: | Component: | regex | |
Version: | Boost 1.35.0 | Severity: | Problem |
Keywords: | Cc: |
Description
I am using:
- Windows XP Professional SP2/SP3 [german]
- MSVC 2005 Express Edition [english]
- Boost, all msvc-8.0 libraries installed via http://www.boostpro.com/boost_1_35_0_setup.exe[[BR]]
.
When I create a "Debug" build of the Boost.Regex linking example from "Getting Started on Windows" [1], building succeeds,
but when I start the exe, I see the console message "The system cannot execute the specified program"
(translated from "Das angegebene Programm kann nicht ausgeführt werden.")
Dependency Walker says that MSVCP80D.DLL and MSVCR80D.DLL cannot be found.
Workaround: using a static runtime library
(by setting "C/C++->Code Generation->Runtime Library" to "Multi-threaded Debug (/MTd)" instead of the default "Multi-threaded Debug DLL (/MDd)".
The example runs fine as "Release" build (with the default "Multi-threaded DLL (/MD)" runtime library).
(I see this problem on two different machines.)
[1]: http://www.boost.org/doc/libs/1_35_0/more/getting_started/windows.html#link-your-program-to-a-boost-library
This ticket can be closed as invalid:
The boostpro libs want to link agains versions 8.0.50727.762 of the mentioned dlls, which became available after updating MSVC 2005.