Changes between Version 1 and Version 2 of Ticket #7792, comment 3
- Timestamp:
- Jul 7, 2011, 2:18:43 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #7792, comment 3
v1 v2 20 20 {{{ 21 21 #include <list> 22 #include <iostream> 22 23 23 24 int main(int, char**) 24 25 { 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); 29 30 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; 33 37 } 38 }}} 34 39 35 return 0; 36 } 37 38 }}} 40 That sample linked OK using gcc 4.4.4 but produce the mentioned unresolved link messages in 4.5.3. 39 41 40 42 … … 42 44 43 45 44 45