Troubles with Intel compiler 10.1
Hello,
I'm experiencing a problem with the intel compiler 10.1.
Specifically, when recompiling a code (that before worked very well) I received the following error:
/usr/include/c++/4.2.1/ext/atomicity.h(51): error: identifier "__sync_fetch_and_add" is undefined
{ return __sync_fetch_and_add(__mem, __val); }
^
/usr/include/c++/4.2.1/ext/atomicity.h(55): error: identifier "__sync_fetch_and_add" is undefined
{ __sync_fetch_and_add(__mem, __val); }
^
compilation aborted for gen.cpp (code 2)
make: *** [gen] Error 2
Searching on internet I found that this is due to an incompatibility between intel 10.1 and gcc 4.2 and that "this problem is solved on the version 11 of the intel compiler). Since I do not want to buy the new version, do you have any idea of how I could overcome the problem?
In my opinion if I could in some way setting a parameter that obliges the intel compiler to use gcc 4.0 then I guess I could overcome the problem. But I do not have any idea about how to do it.



