Quantcast
Channel: Intel® Software - Intel® C++ Compiler
Viewing all articles
Browse latest Browse all 1175

C++11 support issue - memory_order_release is undefined

$
0
0

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.

AttachmentSize
Downloadtext/plainload.c.txt14.59 KB

Viewing all articles
Browse latest Browse all 1175

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>