Pavan Balaji, le Wed 21 Oct 2009 17:46:28 -0500, a écrit : > Suppose you compiled hwloc with gcc, you'll get the following in your > new config file -- > > /* Note the hwloc_ prefix added by the AX_PREFIX_CONFIG_H macro */ > #define hwloc_restrict __restrict > > Now, if the application is using suncc, and it tries to find what > spelling for restrict it needs to use, it'll come up with -- > > #define restrict _Restrict > > These do not conflict at all; hwloc will use its definition of restrict > and the application will use its. Why is this a problem?
Because the hwloc headers are full with hwloc_restrict qualifiers, translated into __restrict, which suncc will not understand, and thus hwloc.h will not compile. Samuel