How to use boost::regex source code without using any *.lib file
---------- Forwarded message ----------
From: Jun Wan
Recently I used boost::regex in my project(VS2005 IDE). It works well with linking the lib file. But I want to use the source code of boost::regex.I include the regex.hpp in the project and used BOOST_REGEX_NO_LIB macro; But I got such error infomation when linking the code.
You're only including the header, not the source code: add the libs/regex/src/*.cpp files to your project and you should be fine. HTH, John.
I sorry to reply to you so late! I got sick these days. Thank you for you
help!
2009/2/17 John Maddock
Recently I used boost::regex in my project(VS2005 IDE). It works well
with linking the lib file. But I want to use the source code of boost::regex.I include the regex.hpp in the project and used BOOST_REGEX_NO_LIB macro; But I got such error infomation when linking the code.
You're only including the header, not the source code: add the libs/regex/src/*.cpp files to your project and you should be fine.
HTH, John. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Jun Wan wrote:
I sorry to reply to you so late! I got sick these days. Thank you for you help!
2009/2/17 John Maddock
mailto:john@johnmaddock.co.uk> Recently I used boost::regex in my project(VS2005 IDE). It works well with linking the lib file. But I want to use the source code of boost::regex.I include the regex.hpp in the project and used BOOST_REGEX_NO_LIB macro; But I got such error infomation when linking the code.
You're only including the header, not the source code: add the libs/regex/src/*.cpp files to your project and you should be fine.
HTH, John.
Thus is it now possible to use only header files of regex library without any linking? -- Lorenzo Bettini, PhD in Computer Science, DI, Univ. Torino ICQ# lbetto, 16080134 (GNU/Linux User # 158233) HOME: http://www.lorenzobettini.it MUSIC: http://www.purplesucker.com http://www.myspace.com/supertrouperabba BLOGS: http://tronprog.blogspot.com http://longlivemusic.blogspot.com http://www.gnu.org/software/src-highlite http://www.gnu.org/software/gengetopt http://www.gnu.org/software/gengen http://doublecpp.sourceforge.net
Thus is it now possible to use only header files of regex library without any linking?
No: that was my point, you need to either link to the library or include the source files in your project. John.
participants (3)
-
John Maddock
-
Jun Wan
-
Lorenzo Bettini