Eclipse Kepler (latest)
Mingw 3.20 (latest)
Boost_1_54_0
on a 64-bit Windows 7 machine.
<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"
Any ideas why this is happening? And, what I can do to get past this?
Thanks,
Joe