YOung
YOung

Reputation: 1158

Since gcc on mac doesn't support openmp, what can I do to let it support?

At the first,I used the default gcc on my mac.but it does't support openmp. using "gcc -v",I get gcc 4.2.1

So, I used brew to install gcc. When it is done, using the "gcc -v",it has no changes. the brew give tips to me "openmp may not be supported,using "brew reinstall gcc --without-muli"??
I don't remember the "muli???" accurately.I try that,but It doesn't help.

So, this is my question: What can I do to make my gcc to support openmp in my macbook?

Upvotes: 2

Views: 2675

Answers (1)

user2548418
user2548418

Reputation: 1571

Brew will install gcc under a slightly different name to not clobber the existing gcc. The easiest way to check for other gcc's is to type gcc- and then hit the TAB key to see what completions there are. I believe brew's current gcc is 4.9.1, so after installing gcc with brew you should be able to access it with gcc-4.9.

Upvotes: 2

Related Questions