Changes between Version 1 and Version 2 of Ticket #7792, comment 3


Ignore:
Timestamp:
Jul 7, 2011, 2:18:43 PM (13 years ago)
Author:
siarzhuk

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7792, comment 3

    v1 v2  
    2020{{{
    2121#include <list>
     22#include <iostream>
    2223
    2324int main(int, char**)
    2425{
    25 std::list<int> l;
    26 l.psuh_back(1);
    27 l.push_back(2);
    28 l.push_back(3);
     26        std::list<int> l;
     27        l.push_back(1);
     28        l.push_back(2);
     29        l.push_back(3);
    2930
    30 std::list<int>::iterator i = l.begin();
    31 for (; i != l.end(); i++){
    32   std:cout << *i << std::endl();
     31        std::list<int>::iterator i = l.begin();
     32        for (; i != l.end(); i++){
     33                std::cout << *i << std::endl;
     34        }
     35
     36        return 0;
    3337}
     38}}}
    3439
    35 return 0;
    36 }
    37 
    38 }}}
     40That sample linked OK using gcc 4.4.4 but produce the mentioned unresolved link messages in 4.5.3.
    3941
    4042
     
    4244
    4345
    44 
    45