Topic
No replies
abhi_joshi04
abhi_joshi04
1 Post
ACCEPTED ANSWER

Pinned topic forward_list support on xlC 11

‏2013-08-02T11:20:01Z |

I am porting my code to xlC.
Wondering if forward_list is supported by xlC?
i tried with test program


#include <forward_list>
#include <iostream>
int main()
{
    std::forward_list<int> fl;
    std::cout<<"Hello";
    return 0;
}

Its compiling fine on g++ but giving errror on xlC.
tried following compile line:
xlC forward_list_test.cpp
xlC -D __IBMCPP_TR1__ forward_list_test.cpp
But error is same:
"forward_list_test.cpp", line 1.10: 1540-0836 (S) The #include file is not found.

if its supported do we need to add something extra to compile it? 
Note: using xlC 11

 

Thanks.