regex linker issue/
Hi all,
I just downloaded boost and I am attempting to create a trivial program.
This my first attempt to develop boost on Fedora. Here is what I did:
1) downloaded boost_1_45_0
2) ./bootstrap.sh
3) ./bjam toolset=gcc variant=debug link=static --address-model=64
--with-regex
All of these step ran uneventfully
I then created a "hello world" regex program:
// regex-test.cpp
#include <string>
#include <iostream>
#include
Worked like a charm! Many thanks!
johnh
On Thu, Jan 6, 2011 at 11:48 AM, John Maddock
To compile and link:
g++ -o regex-test -I../../boost/boost_1_45_0/ -L../../boost/boost_1_45_0/stage/lib/ -lboost_regex regex-test.cpp
GCC requires that libraries appear *after* the source files that use them, fix that and it should work,
HTH, John. _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Join us at at Tampa Bay's largest Tax Day Tea Party: www.TaxDayTampaBay.com Revolution is Brewing--America Rising www.Tampa-Tea-Party.com <#> <#> <#> <#>
participants (2)
-
John Hendrix
-
John Maddock