Thursday, 15 May 2014

c++ - Eclipse complains method c_str could not be resolved -



c++ - Eclipse complains method c_str could not be resolved -

how can programme compile eclipse shows me "semantic errors" , how rid of errors?

the error messages have next method 'c_str' not resolved (this happens compare , size on strings)

here example:

std::string someotherstring = "test"; std::string name = someotherstring.c_str();

the problem here creates follow errors seem not true, software compiles , runs intended , uses "c_str()" returns process messages. seems display issue in eclipse.

i have searched hours, tried utilize custom indexer reason won't go away. maybe else has thought here google spits out nil specific problem. (i have tried utilize different c++11 standard flags thought might had impact)

i had same problem. solved run index -> rebuild. can find clicking on project main folder right button. cheers

c++ eclipse c++11 g++4.8

No comments:

Post a Comment