c++ unresolved symbol

I have this problem:

# make
gcc -g -D_REENTRANT -DDISABLE_MJPEG=1 -I. -o encmain.o -c encmain.cc

ld: 0711-317 ERROR: Undefined symbol: std::string::_Rep::_S_max_size
collect2: ld returned 8 exit status

but

from /usr/local/include/g++v3/bits/basic_string.h :

namespace std
{
.....
class basic_string
{
private:

struct _Rep

{

......
 static const size_type  \_S\_max_size

}}}

I searched the code for something like std::string::_Rep::_S_max_size but i couldnt find anything.

Any ideas?