This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

libstdc++-v3 useable ?


Hi, 

I'm not sure if I'm expecting too much or if I'm doing something wrong
, but I can't get even the most simple STL based program to compile with any 
recent gcc CVS snapshot. 

For example: 


#include <vector.h>

int main()
{
  vector <char *> vszbar;
  vector <char *>::iterator iter;
      for (iter = vszbar.begin(); iter != vszbar.end(); iter++);
}


does not compile. Okay, I heard that you dislike backward compatibility, 
so I made a "legal" example, like: 


#include <vector>

int main()
{
    char e;
    std::vector <char*> foo;
    foo.push_back(e);
}


This program doesn't compile either. I'm clueless. Is libstdc++ not ready 
for use yet or am I really doing something wrong?



Dirk

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]