Opened 12 years ago

Closed 12 years ago

#9213 closed bug (invalid)

broken = operator in string

Reported by: smashIt Owned by: nobody
Priority: normal Milestone: R1
Component: - General Version: R1/alpha4.1
Keywords: Cc:
Blocked By: Blocking:
Platform: All

Description

compiling code like string test_string="test"; gives a rather lenghty errormessage:

/Data/test/(Objects.test)/test.o: In function `basic_string<char, string_char_traits<char>, malloc_alloc_template<0> >::replace(unsigned long, unsigned long, char const *, unsigned long)': test.cpp:(.basic_string<char, string_char_traits<char>, malloc_alloc_template<0> >::gnu.linkonce.t.replace(unsigned long, unsigned long, char const *, unsigned long)+0x41): undefined reference to `out_of_range(char const *)' test.cpp:(.basic_string<char, string_char_traits<char>, malloc_alloc_template<0> >::gnu.linkonce.t.replace(unsigned long, unsigned long, char const *, unsigned long)+0x9e): undefined reference to `length_error(char const *)' collect2: ld returned 1 exit status

System is alpha 4.1 running in Virtualbox, and I used Paladin

Change History (1)

comment:1 by anevilyak, 12 years ago

Resolution: invalid
Status: newclosed

Use of std::string requires you to link your app to libstdc++.

Note: See TracTickets for help on using tickets.