Boost logo

Boost :

From: Stephan T. Lavavej (stl_at_[hidden])
Date: 2003-11-22 21:09:47


[John Maddock]
> if you are trying to compile some of the example programs that
> shipped with 1.30, then these will *not* build with 1.31

Aha! That was what I was trying to do, since I was using the example
programs in the online documentation.

I found the example programs in Boost CVS, added a few unnamed namespaces,
and got this:

C:\Temp\foozle>make
g++ -Wall -W -Wshadow credit_card_example.cpp -o credit_card_example.exe
-lboost_regex
g++ -Wall -W -Wshadow partial_regex_grep.cpp -o partial_regex_grep.exe
-lboost_regex
g++ -Wall -W -Wshadow partial_regex_match.cpp -o partial_regex_match.exe
-lboost_regex
g++ -Wall -W -Wshadow regex_grep_example_1.cpp -o regex_grep_example_1.exe
-lboost_regex
g++ -Wall -W -Wshadow regex_grep_example_2.cpp -o regex_grep_example_2.exe
-lboost_regex
g++ -Wall -W -Wshadow regex_grep_example_3.cpp -o regex_grep_example_3.exe
-lboost_regex
g++ -Wall -W -Wshadow regex_grep_example_4.cpp -o regex_grep_example_4.exe
-lboost_regex
g++ -Wall -W -Wshadow regex_iterator_example.cpp -o
regex_iterator_example.exe -lboost_regex
g++ -Wall -W -Wshadow regex_match_example.cpp -o regex_match_example.exe
-lboost_regex
g++ -Wall -W -Wshadow regex_merge_example.cpp -o regex_merge_example.exe
-lboost_regex
g++ -Wall -W -Wshadow regex_replace_example.cpp -o regex_replace_example.exe
-lboost_regex
g++ -Wall -W -Wshadow regex_search_example.cpp -o regex_search_example.exe
-lboost_regex
g++ -Wall -W -Wshadow regex_split_example_1.cpp -o regex_split_example_1.exe
-lboost_regex
g++ -Wall -W -Wshadow regex_split_example_2.cpp -o regex_split_example_2.exe
-lboost_regex
g++ -Wall -W -Wshadow regex_token_iterator_eg_1.cpp -o
regex_token_iterator_eg_1.exe -lboost_regex
g++ -Wall -W -Wshadow regex_token_iterator_eg_2.cpp -o
regex_token_iterator_eg_2.exe -lboost_regex
regex_token_iterator_eg_2.cpp: In function `int main(int, char**)':
regex_token_iterator_eg_2.cpp:61: warning: declaration of `i' shadows a
   previous local
regex_token_iterator_eg_2.cpp:53: warning: shadowed declaration is here
regex_token_iterator_eg_2.cpp:81: warning: declaration of `i' shadows a
   previous local
regex_token_iterator_eg_2.cpp:53: warning: shadowed declaration is here

C:\Temp\foozle>

Excellent! I confirm that the shadowing problems are gone.

Stephan T. Lavavej
http://nuwen.net


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk