473,326 Members | 2,438 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Boost Libraries failing to work with g++ 3.3.2, but working with 3.4.5

Code snippet:

#include <iostream>
#include <string>
#include <boost/regex.hpp // Boost.Regex lib

using namespace std;

int main( )
{
std::string s, sre;
boost::regex re;

....
try
{
// Set up the regular expression for case-insensitivity
re.assign(sre, boost::regex_constants::icase);
}
// catch (boost::regex_error& e)
catch (...)
{
cout << sre << " is not a valid regular expression: \"" <<
endl;
continue;
}
...
}

This code snippet builds well with GCC g++ 3.4.5, but fails to link on
g++ 3.3.2, error being something to do with basic strings.

Is there any workaround on 3.3.2 - this is the one I have to use. I am
on boost 1.32

Jul 19 '07 #1
3 1392
am************@gmail.com wrote:
Code snippet:

[..snip..]

This code snippet builds well with GCC g++ 3.4.5, but fails to link on
g++ 3.3.2, error being something to do with basic strings.

Is there any workaround on 3.3.2 - this is the one I have to use. I am
on boost 1.32
Wrong place to ask.

Boost has its own discussion forums, please go there and ask. Also,
consider 'gnu.g++.help' for your GNU-specific questions.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jul 19 '07 #2
On Jul 19, 2:22 pm, "Victor Bazarov" <v.Abaza...@comAcast.netwrote:
ambarish.mi...@gmail.com wrote:
Code snippet:
[..snip..]
This code snippet builds well with GCC g++ 3.4.5, but fails to link on
g++ 3.3.2, error being something to do with basic strings.
Is there any workaround on 3.3.2 - this is the one I have to use. I am
on boost 1.32
Wrong place to ask.
Not according to the charter of the group. Not according to the
C++ standards committee either: boost::regex was adopted as
TR-2, and will be in the next version of the standard.

It's probable that he will get better or more information from
the boost mailing list, but the question is perfectly on topic
here.

--
James Kanze (GABI Software) email:ja*********@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientierter Datenverarbeitung
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

Jul 20 '07 #3
Hello,

am************@gmail.com wrote:
This code snippet builds well with GCC g++ 3.4.5, but fails to link on
g++ 3.3.2, error being something to do with basic strings.

Is there any workaround on 3.3.2 - this is the one I have to use. I am
on boost 1.32
You need to build boost libraries twice, once with g++-3.3.2 and another
times with 3.4.5, because there have been changes in the ABI between
g++-3.3.2 and 3.4.5, preventing code compiled with one release to be
linkable to code compiled by the other. If different compiler releases
come into play, you always have to check, whether they are compatible,
not only with g++.

Bernd Strieder

Jul 20 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Manzanita | last post by:
Hi. I'm using boost::numerics::ublas to solve linear symmetric and hermitian systems (cholesky, qr, etc.). I'm aware that ublas only provide basic algebra operations (blas1, blas2 and blas3) so...
16
by: Jeff Flinn | last post by:
At the risk of raising the OT ire of some here, I'd like to know what might be done to raise the awareness of the boost libraries. I've found boost and it's libraries invaluable in my work for ~5...
17
by: Howard Gardner | last post by:
/* If I am using boost, then how should I write this program? As it sits, this program is using SFINAE to determine whether or not a type supports particular syntax. I suspect that there is...
34
by: Guch Wu | last post by:
Boost has many terrific libraries. But I want to know whether they are ready for using in real projects. Which of them are mature enough, or just only in progress?
1
by: Qun Cao | last post by:
Hi Everyone, I just started to use boost.python and having problem trying to get my first program working. I have a C++ class foo.cpp, defined in foo.h, I wrote a wrapper class for it to...
0
by: Osiris | last post by:
My experiences with BOOST on Windows XP and Visual C++ 2005 I'm new to Python. I built software in more than ten other computer languages. I'm not sure if that is not a handicap, when reading...
85
by: g | last post by:
Hello, is there any library for C as Boost is for C++? thanks in advance,
8
by: Matt England | last post by:
My team currently using Boost Threads, but we are considering switching to ZThreads. (We seek cross-platform, C++ multithreading capabilities in an external library.) ZThread(s): ...
3
by: neino | last post by:
Hello, did anyone of You have problems using boost::regex ? That code below : #include "boost/regex.hpp" /*1*/ int main() /*2*/ { /*3*/...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.