#484: CCTK_CHECK_C_INLINE can define away the inline keyword ---------------------+------------------------------------------------------ Reporter: rhaas | Owner: Type: defect | Status: new Priority: minor | Milestone: Component: Cactus | Version: Resolution: | Keywords: ---------------------+------------------------------------------------------
Comment (by eschnett):
I see; yes, I've seen these string.h problems. I usually circumvent them by allowing multiply defined symbols in the linker, specifically by adding -Wl,--allow-multiple-definition to LDFLAGS on Kraken.
Another way to circumvent this may be to #include <string.h> before <cctk.h>; this way, the inline keyword is not redefined when the standard headers are read. This may require many code changes, and is also somewhat inelegant since things should not depend on the order in which include files are read.
On a side note, I highly recommend using the Intel compiler over the PGI compiler. I find it produces faster code and is easier to use.