I am having issues using XL C to compile a c++ project.
Using AIX 5.3, we were using the -D_AIX and -D_AIX50 to compile the project.
We changed AIX version for AIX 6.1.
To update options and looking at the XL C 10.1 documentation, I did not found any information about the -D_AIX50 option (information which was in the XLC 7.0 documentation).
Then, I tried to use -D_AIX61 but compiler return the following warning :
"/usr/vacpp/include/ansic_aix.h", line 19.4: 1506-205 (S) #error "Obsolete header file, please stop using it, or define OLD_ANSIC_AIX_VERSION macro to invoke it"
My question is simple :
Does this fonction still exist ?
What this option is used for ?
Does it provides any specifics optimizations or is it used only for personnal optimization like
if _AIX50 == 1 then
do something else ?
Following the advice in the warning I should only use -DOLD_ANSIC_AIX_VERSION whereas -D_AIX and -D_AIX50 option ?
Thank you very much for your answer !
Pinned topic Little question about : 1506-205 (S) #error "Obsolete header file
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2011-03-07T15:59:46Z at 2011-03-07T15:59:46Z by Visda
Visda 060001SUB137 Posts
Re: Little question about : 1506-205 (S) #error "Obsolete header file2011-03-07T15:59:46ZThis is the accepted answer. This is the accepted answer.Hello, Matthieu,
In reply to one of your questions: does this function still exists?
You can use -qshowmacros to get a list of the macros used by the compiler. An example of how to use and the expected output is given in: How do you determine the compiler's predefined macros? here on this forum.