how to make it working correct(libstdc++)?

TARZAN LION tarzanboy@21cn.com
Mon Aug 12 00:49:00 GMT 2002


I download a gcc-3.1 tar file.
than I excute the following command:

    tar zxvf gcc-3.1.tar.gz
    cd gcc-3.1
    ./configure --prefix = /usr
                --enable-threads=posix
                --enable-shared
    make bootstrap
    make install
    
    but some error message reported when I compiled some like sample.cpp file.

    the sample.cpp file like following:

#include <iostream.h>
#include <string.h>

int main()
{
  string str("hello world!");
  cout<<str<<endl;
  return 0;
}

  my program have not any error,but some error report like following message:
  "string" undeclared (first use this function)
I know some reason-->"the include file,something is wrong",but I don't know how to do.
  
  what can I do for it? I don't know.

----------------------------------------------
ÍæÖ©ÖëÏÀÓÎÏ·,ÈÕÈÕËÍ´ó½±,ÿÌìÍ·½±°®Á¢ÐÅT68ÊÖ»ú 
http://sms.21cn.com/game_a04.jsp 
ÊÖ»úºÅÂëÕ¼²·ÄãµÄ²ÆÔË,Ãâ·ÑÊÔÓà 
http://sms.21cn.com/game_mc001.jsp 
¶à¿î»úÐÍͼƬÁåÉù,ÒýÁìÊÖ»ú³±Á÷ 
http://211.147.1.182/21CN/modules/pic/ 
ÊÕ·ÑÓÊÏäÎå°ü³Ðŵ:°üÍ˰ü»»°üÂúÒâ ºñÀñË«°üËÍ´ó½± 
http://mail.21cn.com/5bao/5bao2.html 




More information about the Libstdc++ mailing list