Dear Sir,
I am trying to compile a code , and i am getting an error:-
icc -c -O2 -lpthread -xHOST -D_XOPEN_SOURCE=500 -D_POSIX_C_SOURCE=200112 -std=c11 -fno-strict-aliasing load.c
load.c(277): warning #266: function "atomic_thread_fence" declared implicitly { atomic_thread_fence(memory_order_release);}; ^ load.c(277): error: identifier "memory_order_release" is undefined { atomic_thread_fence(memory_order_release);}; ^ compilation aborted for load.c (code 2)
Is the following version of intel missing c++11 support (http://en.cppreference.com/w/cpp/atomic/memory_order) or am i using wrong flags?
$ icc -V
Intel(R) C Intel(R) 64 Compiler XE for applications running on Intel(R) 64, Version 15.0.3.187 Build 20150407
Copyright (C) 1985-2015 Intel Corporation. All rights reserved.
File is attached herewith.
Eagerly awaiting your reply.