swerves
asked on
issue building boost::regex on win32
I have tried to install the boost libraries as per http://wagjo.com/index.php?id=27
When i try to declare a regex type i run into linker issues.
eg
boost::regex re("abcde");
gives the linker error
[Linker error] undefined reference to `boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<ch ar> > >::do_assign(char const*, char const*, unsigned int)'
it has no issue with
boost::regex re();
though
any pointers please.
Also I am developing using dev-cpp on windows.
When i try to declare a regex type i run into linker issues.
eg
boost::regex re("abcde");
gives the linker error
[Linker error] undefined reference to `boost::basic_regex<char, boost::regex_traits<char, boost::cpp_regex_traits<ch
it has no issue with
boost::regex re();
though
any pointers please.
Also I am developing using dev-cpp on windows.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
jkr,
i tried the unicode test but that doesnt seem to be it.
It doesnt compile this time, saying "no matching function.." so i think that means that's not it.
i tried the unicode test but that doesnt seem to be it.
It doesnt compile this time, saying "no matching function.." so i think that means that's not it.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
the compile log shows
==========================
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Makefile.win" all
g++.exe main.o -o "assp_log_parser.exe" -L"C:/Dev-Cpp/lib" -L"C:/Boost/boost_1_39_0/l
main.o(.text$_ZN5boost11ba
collect2: ld returned 1 exit status
make.exe: *** [assp_log_parser.exe] Error 1
Execution terminated
==========================
which i think means i am linking using the directory "C:/Boost/boost_1_39_0/lib
there are 4 files with regex in their name such as libboost_regex-vc90-mt-gd-
which actually looking at it is slightly concerning, are these libraries for the visual c++ compiler and not the dev-cpp one?