Compiling listner code

Sep 10, 2015 at 1:16 PM
i have written a small server using http_listener. i am able to run the code from xcode. But when i try to compile the code from command line i get lots of errors. the first one being

Applications/ error: <atomic> is not implemented

error <atomic> is not implemented

i have added the header file path to CPATH env variable.following is output of "cpp - v" command--
/System/Library/Frameworks (framework directory)
/Library/Frameworks (framework directory)

for compiling i am simply using ---
g++ -c Api.c

How to fix this.
Sep 10, 2015 at 2:24 PM
i figured it out.
i had to use c++ 11 inorder to compile the code.
g++ -std=c++11 Api.c
Marked as answer by gaurav_123qwe on 9/10/2015 at 6:24 AM