From Mac to Unix

Apr 27, 2014 at 12:18am

Hi everone,

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?!

Thanks!
Last edited on Apr 27, 2014 at 12:25am
Apr 27, 2014 at 1:41am
It is far more likely that the problem is in your program logic.
Apr 27, 2014 at 1:44am
I see! So you think it's not a good idea to work and Mac and compile on unix?
Apr 27, 2014 at 2:12am
I think it's a good idea to make sure your program is correct.
Topic archived. No new replies allowed.