Boost logo

Boost :

Subject: [boost] Novice Problem
From: master master (master_4_master_at_[hidden])
Date: 2008-12-31 00:28:40


This code is running in codepad http://boost.codepad.org/ybbmMUEc (available ony for 24 hrs) But when I run this at my side it gives error 1>------ Build started: Project: stringmanipulation, Configuration: Debug Win32 ------ 1>Compiling... 1>stringcases.cpp 1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\formattesting\stringmanipulation\stringcases.cpp(115) : error C2275: 'std::string' : illegal use of this type as an expression 1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\formattesting\stringmanipulation\stringcases.cpp(115) : error C2146: syntax error : missing ')' before identifier 'elem' 1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\formattesting\stringmanipulation\stringcases.cpp(115) : error C2059: syntax error : ')' 1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\formattesting\stringmanipulation\stringcases.cpp(116) : error C2143: syntax error : missing ';' before '{' 1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\formattesting\stringmanipulation\stringcases.cpp(117) : error C2065: 'elem' : undeclared identifier 1>c:\documents and settings\administrator\my documents\visual studio 2008\projects\formattesting\stringmanipulation\stringcases.cpp(115) : error C3861: 'BOOST_FOREACH': identifier not found 1>Build log was saved at "file://c:\Documents and Settings\Administrator\My Documents\Visual Studio 2008\Projects\FormatTesting\stringmanipulation\Debug\BuildLog.htm" 1>stringmanipulation - 6 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ========== If I comment BOOST_FOREACH loop every thing runs fine. Where is the problem??? I am using VC 9.0 (Visual Studio 2008) and boost_1_36_0. If this issue is already solved in boost 1.37 then which lib I need to download from trunk. Give me url like this http://cgs.hpi.uni-potsdam.de/trac/vrs/browser/trunk/3rd-party/boost-1.36.0/lib_win32?rev=6507 Rahul To create something exceptional ________________________________ -Master4Master "Confidentiality Warning: This message and any attachments are intended only for the use of the intended recipient(s), are confidential, and may be privileged. If you are not the intended recipient, you are hereby notified that any review, re-transmission, conversion to hard copy, copying, circulation or other use of this message and any attachments is strictly prohibited. If you are not the intended recipient, please notify the sender immediately by return email, and delete this message and any attachments from your system. Virus Warning: Although I have taken reasonable precautions to ensure no viruses are present in this email, I cannot accept responsibility for any loss or damage arising from the use of this email or attachment.." Speak out for justice and peace, even if your voice trembles. Unlimited freedom, unlimited storage. Get it now, on http://help.yahoo.com/l/in/yahoo/mail/yahoomail/tools/tools-08.html/


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