help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

g++ regex library?


From: JimO
Subject: g++ regex library?
Date: Sat, 28 Aug 2010 08:09:03 -0400
User-agent: KMail/1.13.5 (Linux/2.6.34-12-default; KDE/4.4.4; i686; ; )

I am attempting to use regex. Here is a quick example:

#include <regex>
...
regex myRegex("^[A-Z]*");
bool match = regex_match(string("ABCDEFGAGB"), myRegex);
...

This code compiles if I include the option -std=c++0x, but does not link. Is 
there a library that I have to specify or install?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]