problems with std::vector<TextSegment> segments;

rekotc

08-07-2010 10:42:05

if i put this line in my code:
std::vector<TextSegment> segments;

i have these errors:
error C2065 'TextSegment': undeclared identifier
error C2133: 'segments': unknown dimension
error C2512: 'std::vector': no appropriate default constructor available

any idea? thanks

rekotc

08-07-2010 12:40:46

it works with standard types std::vector<int> segments;..

rekotc

08-07-2010 20:41:12

mmm... :oops:
std::vector<QuickGUI::TextSegment> segments; thanks anyway :)

kungfoomasta

08-07-2010 21:49:36

yep, TextSegment was unknown, since its defined in the QuickGUI namespace. Glad you got it working!