On 27/07/12 5:26, Daniel Colascione wrote:
On 7/26/2012 8:03 PM, Yaakov (Cygwin/X) wrote:
On 2012-07-26 16:46, Daniel Colascione wrote:
$ g++ -std=gnu++0x foo.cpp
/tmp/ccS3vCW7.o:foo.cpp:(.text$_ZNSt11basic_regexIcSt12regex_traitsIcEEC1EPKcj[std::basic_regex >::basic_regex(char const*, unsigned
On 7/26/2012 8:03 PM, Yaakov (Cygwin/X) wrote:
> On 2012-07-26 16:46, Daniel Colascione wrote:
>> $ g++ -std=gnu++0x foo.cpp
>> /tmp/ccS3vCW7.o:foo.cpp:(.text$_ZNSt11basic_regexIcSt12regex_traitsIcEEC1EPKcj[std::basic_regex>
>> std::regex_traits >::basic_regex(char const*, unsigned
>> int)]+0x60):
On 2012-07-26 16:46, Daniel Colascione wrote:
$ g++ -std=gnu++0x foo.cpp
/tmp/ccS3vCW7.o:foo.cpp:(.text$_ZNSt11basic_regexIcSt12regex_traitsIcEEC1EPKcj[std::basic_regex >::basic_regex(char const*, unsigned
int)]+0x60): undefined reference to `std::basic_regex >::_M_compile()'
collect2: ld returne
/tmp
$ cat foo.cpp
#include
#include
int
main()
{
std::regex e("hello");
}
$ g++ -std=gnu++0x foo.cpp
/tmp/ccS3vCW7.o:foo.cpp:(.text$_ZNSt11basic_regexIcSt12regex_traitsIcEEC1EPKcj[std::basic_regex >::basic_regex(char const*, unsigned
int)]+0x60): undefined reference to `std::basic_regex >:
4 matches
Mail list logo