[Trilinos-Users] Aztecoo question
Heroux, Michael A
maherou at sandia.gov
Tue Dec 8 15:26:15 MST 2009
Jason,
This statement is from f2c-generated code. I am not sure why it is part of the boilerplate, except maybe to protect against expansion of variable names in the generated C code to the macro definition. I think the right way to shut this off is to add -DSkip_f2c_Undefs to CFLAGS.
We should be able to safely remove the entire section of #undef's in future versions. For now you could easily just comment out the offending line.
Mike
On 12/8/09 1:12 PM, "Jason Slemons" <slemons at cray.com> wrote:
I'm compiling aztecoo using the cray compiler and I came across an error when compiling az_c_reorder.c(its in the src directory in aztecoo):
/trilinos-10.0-Source/packages/aztecoo/src> cc az_c_reorder.c
/opt/cray/xt-asyncpe/3.5.17/bin/cc: INFO: linux target is being used
CC-45 craycc: ERROR File = az_c_reorder.c, Line = 227
An attempt is made to undefine a predefined macro.
#undef unix
^
Total errors detected in az_c_reorder.c: 1
I wonder if I can just comment out this line? It doesn't seem to affect anything else in the code.
-Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://software.sandia.gov/pipermail/trilinos-users/attachments/20091208/baf92653/attachment.html
More information about the Trilinos-Users
mailing list