I am using Mac for writing my codes and I use the following to compile my code in terminal:
clang++ -std=c++11 -stdlib=libc++ myFile.cpp
However, my instructor using Unix to test my program! Last assignment I submitted won't perfectly compile on unix and gives SEGMENTATION FAULT (CORE DUMPED) error. I think the problem in this statment
-stdlib=libc++
because it's not included when compile in unix! Anyone knows how to solve this problem?!