|
Boost Users : |
Subject: Re: [Boost-users] Procedure entry point _ZNSt16invalid_argumentD2Ev could not be located in the dynamic link library libstdc++-6.dll
From: Igor R (boost.lists_at_[hidden])
Date: 2013-07-11 14:00:50
> I have a newbie question for you. I'm trying Boost for the very first time.
> I'm also not terribly experienced with C++.
>
> I'm using,
>
> Eclipse Kepler (latest)
> Mingw 3.20 (latest)
> Boost_1_54_0
>
> on a 64-bit Windows 7 machine.
>
> I followed this tutorial to configure Boost to be used with Mingw and
> Eclipse: http://theseekersquill.wordpress.com/2010/08/24/howto-boost-mingw/
>
> Sections 1-6 performed as expected. The 7th and final step is when a "hello
> world" like application finally compiles and links Boost into a .exe. I
> cut-n-paste the following code from Boost's Getting Started tutorial
> (http://www.boost.org/doc/libs/1_54_0/more/getting_started/windows.html):
>
> <snip>
>
> #include <boost/regex.hpp>
> #include <iostream>
> #include <string>
>
> int main()
> {
> std::string line;
> boost::regex pat( "^Subject: (Re: |Aw: )*(.*)" );
>
> while (std::cin)
> {
> std::getline(std::cin, line);
> boost::smatch matches;
> if (boost::regex_match(line, matches, pat))
> std::cout << matches[2] << std::endl;
> }
> }
>
> </snip>
>
> The output of the build is,
>
> <snip>
>
> 12:20:46 **** Rebuild of configuration Debug for project BoostRegexExample1
> ****
> Info: Internal Builder is used for build
> g++ "-Ic:\\boost_1_54_0" -O0 -g3 -Wall -c -fmessage-length=0 -o
> BoostRegexExample1.o "..\\BoostRegexExample1.cpp"
> g++ "-LC:\\boost_1_54_0\\stage\\lib" -o BoostRegexExample1.exe
> BoostRegexExample1.o -lboost_regex-mgw46-mt-1_54
>
> 12:20:52 Build Finished (took 5s.992ms)
>
> </snip>
>
> If I try to run that application within Eclipse the terminal simply states
> the application terminated. If I go to a terminal and run the .exe (using a
> text file as in input as directed in the Getting Started document) I get,
>
> "Procedure entry point _ZNSt16invalid_argumentD2Ev could not be located in
> the dynamic link library libstdc++-6.dll"
Looks like exceptions are not enabled? Could you try compiling with
-fexceptions option?
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net