f



Any XL C/C++'s option to determine the compiler's predefined macros

Hi,

AIX 5.3

$ xlc++ -qversion
IBM XL C/C++ Enterprise Edition V8.0 for AIX
Version: 08.00.0000.0014

Is there any XL C/C++'s option to determine the compiler's predefined
macros?

Alex Vinokur
0
alexvn866 (277)
1/14/2009 10:43:36 AM
comp.unix.aix 10963 articles. 1 followers. drkirkby (98) is leader. Post Follow

3 Replies
880 Views

Similar Articles

[PageSpeed] 55

In article <2e672e57-f577-4134-9e81-03eb6b3097b7@35g2000pry.googlegroups.com>,
Alex Vinokur <alexvn@users.sourceforge.net> writes:
> Hi,
> 
> AIX 5.3
> 
> $ xlc++ -qversion
> IBM XL C/C++ Enterprise Edition V8.0 for AIX
> Version: 08.00.0000.0014
> 
> Is there any XL C/C++'s option to determine the compiler's predefined
> macros?
> 
> Alex Vinokur

They are defined in /etc/vac.cfg:

-D_AIX,-D_AIX32,-D_AIX41,-D_AIX43,-D_AIX50,-D_AIX51,-D_AIX52,-D_AIX53,-D_IBMR2,-
-D_POWER


but somehow I suspect this is not quite what you are looking for.
0
M.Kraemer (2048)
1/14/2009 11:47:08 AM
On Jan 14, 1:47=A0pm, m.krae...@gsi.de (Michael Kraemer) wrote:
> In article <2e672e57-f577-4134-9e81-03eb6b309...@35g2000pry.googlegroups.=
com>,
>
> Alex Vinokur <ale...@users.sourceforge.net> writes:
> > Hi,
>
> > AIX 5.3
>
> > $ xlc++ -qversion
> > IBM XL C/C++ Enterprise Edition V8.0 for AIX
> > Version: 08.00.0000.0014
>
> > Is there any XL C/C++'s option to determine the compiler's predefined
> > macros?
>
> > Alex Vinokur
>
> They are defined in /etc/vac.cfg:
>
> -D_AIX,-D_AIX32,-D_AIX41,-D_AIX43,-D_AIX50,-D_AIX51,-D_AIX52,-D_AIX53,-D_=
IB=ADMR2,-
> -D_POWER
>
> but somehow I suspect this is not quite what you are looking for.

You are right.

Here is what HP-UX compiler produces for file:

----- empty.cpp ----
int main()
{
   return 0;
}
------------------------

$ aCC -E -dM empty.cpp

#define __SIGNED_CHARS__ 1
#define __cplusplus 199711L
#define _WCHAR_T 1
#define _BOOL 1
#define __ARRAY_OPERATORS 1
#define __EXCEPTIONS 1
#define __RTTI 1
#define __PLACEMENT_DELETE 1
#define __EDG_RUNTIME_USES_NAMESPACES 1
#define __EDG_IA64_ABI 1
#define __EDG_TYPE_TRAITS_ENABLED 1
#define __EDG__ 1
#define __EDG_VERSION__ 308
#define _HP_IA64ABI 1
#define __hpux 1
#define __unix 1
#define __ia64 1
#define _BIG_ENDIAN 1
#define __STDCPP__ 1
#define _HP_NAMESPACE_STD 1
#define _ILP32 1
#define _INCLUDE__STDC_A1_SOURCE 1
#define __HP_aCC 61500
#define _HP_INSTANTIATE_T_IN_LIB 1
#define _INLINE_ASM 1
#define _BIND_LIBCALLS 1
#define _Math_errhandling MATH_ERREXCEPT
#define _FLT_EVAL_METHOD 0


=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D

I need something HPUX-like.
0
alexvn866 (277)
1/14/2009 12:10:41 PM
On Jan 14, 7:10=A0am, Alex Vinokur <ale...@users.sourceforge.net> wrote:
> On Jan 14, 1:47=A0pm, m.krae...@gsi.de (Michael Kraemer) wrote:
>
>
>
> > In article <2e672e57-f577-4134-9e81-03eb6b309...@35g2000pry.googlegroup=
s.com>,
>
> > Alex Vinokur <ale...@users.sourceforge.net> writes:
> > > Hi,
>
> > > AIX 5.3
>
> > > $ xlc++ -qversion
> > > IBMXLC/C++Enterprise Edition V8.0 for AIX
> > > Version: 08.00.0000.0014
>
> > > Is there anyXLC/C++'soption to determine the compiler'spredefined
> > >macros?
>
> > > Alex Vinokur
>
> > They are defined in /etc/vac.cfg:
>
> > -D_AIX,-D_AIX32,-D_AIX41,-D_AIX43,-D_AIX50,-D_AIX51,-D_AIX52,-D_AIX53,-=
D_IB=ADMR2,-
> > -D_POWER
>
> > but somehow I suspect this is not quite what you are looking for.
>
> You are right.
>
> Here is what HP-UX compiler produces for file:
>
> ----- empty.cpp ----
> int main()
> {
> =A0 =A0return 0;}
>
> ------------------------
>
> $ aCC -E -dM empty.cpp
>
> #define __SIGNED_CHARS__ 1
> #define __cplusplus 199711L
> #define _WCHAR_T 1
> #define _BOOL 1
> #define __ARRAY_OPERATORS 1
> #define __EXCEPTIONS 1
> #define __RTTI 1
> #define __PLACEMENT_DELETE 1
> #define __EDG_RUNTIME_USES_NAMESPACES 1
> #define __EDG_IA64_ABI 1
> #define __EDG_TYPE_TRAITS_ENABLED 1
> #define __EDG__ 1
> #define __EDG_VERSION__ 308
> #define _HP_IA64ABI 1
> #define __hpux 1
> #define __unix 1
> #define __ia64 1
> #define _BIG_ENDIAN 1
> #define __STDCPP__ 1
> #define _HP_NAMESPACE_STD 1
> #define _ILP32 1
> #define _INCLUDE__STDC_A1_SOURCE 1
> #define __HP_aCC 61500
> #define _HP_INSTANTIATE_T_IN_LIB 1
> #define _INLINE_ASM 1
> #define _BIND_LIBCALLS 1
> #define _Math_errhandling MATH_ERREXCEPT
> #define _FLT_EVAL_METHOD 0
>
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D
>
> I need something HPUX-like.

Hi, there is an option for this. Please have a look at the discussion
at
http://www-949.ibm.com/software/rational/cafe/message/4109#4109
0
wmichael (1)
2/4/2009 2:20:52 PM
Reply:

Similar Artilces:

Q: C macro's for lvalue statements ? Any C marco Guru's out there ?
Hi everybody, I've got a problem implementing some macros that would make my code much more readable. The idea: I have a set of macros that create variable names depending of the content of some other define. An example (of how it should look like in the end): // --------------- cut #define BASE_NAME module1 // the macro(s) which I need help for :-) #define MAKE_VARNAME2(base, var,val) int var#_#base = val #define MAKE_VARNAME(var, val) MAKE_VARNAME2(BASE_NAME, var, val) // the usage example MAKE_VARNAME(status, 0); // --------------- cut which should expand to int status_module1...

Trial of Musatov's theory: double spaced 'e x p a n d s' and single spaced 'c o n t r a c t s'. Does the spacing post-processing appear equal? If so, what force was lost and where did it g
Musatov's theory 'The space between spaces expands and contracts.' Would this give time a direction? Musatov ...

More factory sealed FPGA's with C of C's
I have more FPGA's with C of C's that I can supply below facotry direct pricing. Small quantities ok. These have all been purchased thru factrory direct channels and in most cases I can tell you exactly where they came from. We have aquired these from VMI and SMI programs that we have with major OEM's and CM's. Jon E. Hansen Pyramid Technologies Inc. jon@pyramidemail.com www.pyramidtechnologiesinc.com (949)864-7745 Direct (949)636-1416 Cell CERTIFIED ISO 9001:2000 XC5VFX70T-1FF1136C XC5VFX70T-1FFG1136C XC5VLX50-1FF676C XC5VLX330-1FF1760C XC4VLX100-10FFG1148C XC2V3000-4FG...

What's the C++ community's feeling about lambda(or closure) in C++?
I know this topic sounds kind of old and dry(and shallow, maybe :)), but, you see, lately I found that there's all the fuss about closure in Java, so I poked around for a little, and did find some valuable information. And I started to remember that there were a proposal(actually two) about lambda/closure for C++(see http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2006/n1968.pdf and http://www.open-std.org/JTC1/SC22/WG21/docs/papers/2006/n1958.pdf) They're all pretty well-formed and sound, though I found Bjarne's a little more comprehensive. It simply seems that the closure id...

How to link obj's from c-source with obj's from c++-source
Hi, I compiled 2 simple source-files with cl -c main.cpp and cl -c test.c. test.c contains just a simple function, which is declared in test.h. test.h is included in test.c and in main.cpp. When I try to link the objects with link main.cpp test.c -out:prog.exe I get the error: "main.obj : error LNK2019: unresolved external Symbol "int __cdecl greater(int,int)" (?greater@@YAHHH@Z), called in function _main prog.exe : fatal error LNK1120: 1 unresolved external Symbol" What have I to do, to be able to link those objects together? Guido Belligoi "Guido Belligoi" ...

Here's why I think it's broken
From live headers of a message I received in the past 4 hours: .... Received: from matlack.isc.org (matlack.isc.org [149.20.16.8] Port 61915) by <DELETED> with ESMTP id p0I1JVar002570 for <DELETED> (hop 0); Mon, 17 Jan 2011 17:19:42 -0800 Authentication-Results: <DELETED>; Spam=pass Score=-2.315 (...) Authentication-Results: <DELETED>; SPF=neutral smtp.mailfrom=isc.org (...) Received: by matlack.isc.org (Postfix, from userid 0) id 3260D119C78; Tue, 18 Jan 2011 01:18:59 +0000 (UTC) Date: Tue, 18 Jan 2011 01:18:59 +0000 From: ISC DLV Registry <dlv-registry@isc.org> .... In the top [customized] received header, the "hop" comment has $c in it. It says $c = 0. However, as there's a prior "Received:" header in the message, $c should be ONE (1), not zero. That's why I think it's broken. Here's the entire, assembled "Received:" header that is inserted: HReceived: $?sfrom $s $.$?_($?s$|from $.$_$?{client_port} Port ${client_port}$.) $.$?{auth_type}(authenticated$?{auth_ssf} bits=${auth_ssf}$.) $.by $?{if_name}${if_name} ([${if_addr}]$?{daemon_port} Port ${daemon_port}$.)$|$j$.$?r with $r$. id $i$?{tls_version} (version=${tls_version} cipher=${cipher} bits=${cipher_bits} verify=${verify})$.$?u for $u$.$?c (hop $c)$.; $b D. Stussy wrote: > In the top [customized] received header, the "hop" comment has $c in it. > It says $c...

Calling 'foo.c' or 'foo2.c' from my 'main_code.c'
Hello. I don't know if following is possible. I've got 'main_code.c': ............................ char * another_code; another_code = "foo.c"; ............................ I've got 'foo.c': ............................ #include <stdio.h> int main() { printf ("Hello world from 'foo.c'!\n"); return 0; } ............................ I would like to call 'foo.c' main function from 'main_code.c'. Is this possible? Thank you very much and best regards. Francesco Moi <francescomoi@europe.com> scribbled the ...

Bug in Norcroft C compiler's treatment of empty 'if' blocks
I have just stumbled across an insidious bug in the Norcroft C compiler (Norcroft RISC OS ARM C vsn 5.54 [04 Apr 2003]). Given an empty conditional code block, or one with no effect, (e.g. a vestige of a debugging macro), subsequent instructions may wrongly be executed conditionally. The following test case illustrates this: typedef struct { int a; int b; } struct1; void func2(int *foo) { (*foo)++; } int func1(struct1 *comp, int params) { int status = 0; int flush; flush = (params == 1); if (flush) { } do { switch (status) { case 0: func2(&comp->b); break; case 1: func2(&comp->b); break; } } while (status == 0); return status; } CC ADFS::Rissa.$.Programming.AcornC/C++.User.c.NorBug -IC: -c -S -desktop ^ -o ADFS::Rissa.$.!BOOT.Resources.!Scrap.ScrapDirs.IDdisable d.x28962a4a EXPORT func2 func2 LDR a2,[a1,#0] ADD a2,a2,#1 STR a2,[a1,#0] MOV pc,lr DCB &66,&75,&6e,&63 DCB &31,&00,&00,&00 DCD &ff000008 IMPORT __rt_stkovf_split_small EXPORT func1 func1 MOV ip,sp STMDB sp!,{a1,a2,fp,ip,lr,pc} SUB fp,ip,#4 CMP sp,sl BLMI __rt_stkovf_split_small MOV a3,#0 CMP a2,#1 MOVNE a2,#0 MOVEQ a2,#1 CMP a2,#0 ...

if ('A:B:C' =~ /:(.*?)$/) then why the heck is $1 'B:C' and not just 'C'
To repeat the title, in case it is munged by Google Groups: if ('A:B:C' =~ /:(.*?)$/) then why the heck is $1 'B:C' and not just 'C' I've been developing with perl for years; but even simple things in it still sometimes throw up surprises. The regexp /:(.*?)$/ is anchored on the right by $, then comes a non- greedy match which, AIUI, is the "shortest string it can get away with", preceded by a colon. So I would expect this to pick up just the "C", as it does with /([^:]*)$/. Am I assuming/doing something silly? It is frid...

what's Visual C++'s equivalent of inet_aton?
Hi, all I used inet_aton in my Visual C++ application, but got an error: error C2065: 'inet_aton' : undeclared identifier I searched the web and it seems that Visual C++ doesn't have inet_aton, so could anybody tell me an Visual C++'s equivalent of inet_aton? Any help would be appreciated! Bruce BruceWho wrote: > Hi, all > > I used inet_aton in my Visual C++ application, but got an error: > > error C2065: 'inet_aton' : undeclared identifier > > I searched the web and it seems that Visual C++ doesn't have > inet_aton, so could anybody te...

FS: C-64c's / 1541's...
Hi Everyone, For Sale: I'm interested in selling this as two separate lots. Everything has been tested and works perfectly. I have no idea what this stuff is worth so please make me an offer. If you live in Toronto or the GTA or willing to drive here, you can pick everything up yourself. Otherwise, shipping is extra. Lot 1: - C-64C with the newer motherboard, composite monitor cable and power supply. - 1541-II with serial cable and power supply. Lot 2: - C-64C with older motherboard, composite monitor cable and power supply. - 1541 with swivel door design, serial cable and power cabl...

What's the point of C++ mutable in your C++ compiler?
Hi, As the code fragments below indicate, the fact that const cannot be optimized away is a major performance problem in C++. The first and second example below should compile to the same highly optimized code, but they don't because the second example has a const member "length" that is not be treated as const. If I had wanted "length" to be treated as mutable, I would have declared it as mutable. But I don't want it to be treated as mutable. I want it to be treated as const so the compiler can do a good job of optimization. SO my question is, since mutable an...

A beginner's question about C++'s & operator
I was trying to figure out how & work, so I wrote the following code #include <iostream> using namespace std; void print(int &); int main() { int i = 10; int &t = i; cout<<"t = "<<t<<endl; cout<<"&t = "<<&t<<endl; cout<<"&i = "<<&i<<endl; print(t); cout<<"t = "<<t<<endl; return 0; } void print(int &x) { x = 6; cout<<"x = "<<x<<endl; } The output is: x = 10 &x = 0012FF7C &i = 0012FF7C x = 6 i = 6 My que...

Python's __getattr__, Perl's autoload, Ruby's method_missing, and Smalltalk's #doesNotUnderstand
I'm still new here, and I just completed reading CLTL's documentation on packages and On Lisp's documentation on CLOS. It doesn't appear that Lisp has the equivalent of Python's __getattr__, Perl's autoload, Ruby's method_missing, and Smalltalk's #doesNotUnderstand. That is, there is no way I can do this (without new-function being defined): (new-function) and have it call some other function like this: (missing-symbol 'new-function) whose returning value will be evaluated as the value of new-function. Or did I miss something? Jonathan Gardner <...

C/C++: Determine [My] Module's Load Address
Hi All, I'm trying to determine my module's load address at runtime. By 'module's load address', I mean byte[0] of the in-memory image (ie, the first byte of the Elf32_Ehdr). I believe I want information from the struct module in kernel/modules.c. I did find sys_query_module, but it has been depricated. Everything I've found on the web is kernel-centric [1,2], and Stevens does not cover it in Advanced Unix Programming. In the Windows world, I would use __ImageBase (fixed up by the link-loader) or GetModuleHandle(...). Can anyone point me to the proper syscall? (Or to a forum that fields C/C++ and Linux API questions). Thanks, Jeffrey Walton [1] LKML: "Richard B. Johnson": Re: determining load address of module [2] Linux-Kernel Archive: Re: determining load address of module In article <e5661e7b-0927-4cda-b1e9-652274633910@t18g2000vbj.googlegroups.com>, Jeffrey Walton <noloader@gmail.com> wrote: >Hi All, > >I'm trying to determine my module's load address at runtime. By >'module's load address', I mean byte[0] of the in-memory image (ie, >the first byte of the Elf32_Ehdr). I believe I want information from >the struct module in kernel/modules.c. I did find sys_query_module, >but it has been depricated. > >Everything I've found on the web is kernel-centric [1,2], and Stevens That's because you're using the word "module" in a...

'ab\c' and 'ab\\c'
I encountered a rather peculiar behavior of strings today. Here is my irb session: ------------------------------------------------------------------- irb(main):001:0> 'ab\c' irb(main):002:0' ' SyntaxError: compile error (irb):2: unterminated string meets end of file from (irb):2 irb(main):003:0> 'ab\\c' => "ab\\c" irb(main):004:0> 'a\b' => "a\\b" irb(main):005:0> ------------------------------------------------------------------- As you can see when I typed 'ab\c' my irb didn't return. It was expecting...

1 to 20 with x number of 1's, 2's, 3's, ... 20's
This is probably a simple thing to do, so perhaps someone would send me in the right direction. I need to generate a list containing numbers from 1 to 20, say. But I cant just use A = 1:20, for example, because that provides me only one instance of each of the values. What I need is X instances for each value. For example, 5 ones, twos, threes, and so forth. Is there a simple command for this? Regards, Ulrik. On Sep 9, 10:52=A0am, "Ulrik Nash" <u...@sam.sdu.dk> wrote: > This is probably a simple thing to do, so perhaps someone would send me i= n the right direction. > > I need to generate a list containing numbers from 1 to 20, say. But I can= t just use A =3D 1:20, for example, because that provides me only one insta= nce of each of the values. What I need is X instances for each value. For e= xample, 5 ones, twos, threes, and so forth. > > Is there a simple command for this? > > Regards, > > Ulrik. x=3D5; %for example desiredlist=3Dreshape(ones(x,1)*[1:20],1,20*x) hth, suresh "Ulrik Nash" <uwn@sam.sdu.dk> wrote in message <i6aaol$pvr$1@fred.mathworks.com>... > This is probably a simple thing to do, so perhaps someone would send me in the right direction. > > I need to generate a list containing numbers from 1 to 20, say. But I cant just use A = 1:20, for example, because that provides me only one instance of each of the values. What I need is X instances for e...

Microsoft's C/C++ compiler freely available
Thought this might be interesting to those stuck on win32... http://www.winprog.org/tutorial/msvc.html Of course, I only care for so much longer, since my Powerbook is on order ;-) Nathaniel <:((>< In article <001301c3ab2f$f5470230$0500a8c0@abraham>, Nathaniel Talbott <nathaniel@NOSPAMtalbott.ws> wrote: >Thought this might be interesting to those stuck on win32... > > http://www.winprog.org/tutorial/msvc.html > >Of course, I only care for so much longer, since my Powerbook is on order >;-) Another one makes the switch ;-) At OSCON this summer...

Re: SAS Codes for calculating Moran's I and Geary's C
imamx8@gmail.com wrote: > Does anybody have written a SAS code for calculating Moran's I and >Geary's >C? Could you share that with us or me? This is on the internet, and I found it just by searching using Google. http://www.stat.lsu.edu/faculty/moser/spatial/autocorr-body.html It uses SAS/IML. You could compute both of these without SAS/IML, since they're merely scaled cross-products. In fact, you could read a weight matrix into a 2-D array in a DATA step and do it all in one DATA step instead. But I'm not sure that you ought to. I'm not a big fan of bli...

How to add the solver's option in Simulink's s-function
I have a system described in differential equations and I have include the options in the differential equation solving, and I incorporated it in the s-function block and put it in the Simulink. Here are my options and ode solver options = odeset ('Mass',@xu_mass,'MassSingular','yes','MStateDependence','strong'); % odeset('MaxStep','1e-3'); % odeset('RelTol',1e-3,'AbsTol',1e-3); domain = 0:1e-4:8; [t,y]=ode23(@xu_eq,domain,[0;zeros(7,1)],options); However, I don't know where to add the options to the simulation. Please help. Thanks in advance! On 2=D4=C27=C8=D5, =C9=CF=CE=E710=CA=B120=B7=D6, workaholic <liua...@gmail.= com> wrote: > I have a system described in differential equations and I have include > the options in the differential equation solving, and I incorporated > it in the s-function block and put it in the Simulink. > > Here are my options and ode solver > options =3D odeset > ('Mass',@xu_mass,'MassSingular','yes','MStateDependence','strong'); > % odeset('MaxStep','1e-3'); > > % odeset('RelTol',1e-3,'AbsTol',1e-3); > domain =3D 0:1e-4:8; > [t,y]=3Dode23(@xu_eq,domain,[0;zeros(7,1)],options); > > However, I don't know where to add the options to the simulation. > Please help. > > Thanks in advance! Is there anyone who met such a problem? Thanks again in...

question about a command like 'goto ' in Python's bytecode or it's just a compiler optimization?
My Python version is 2.5.2; When I reading the bytecode of some pyc file, I always found that there are many jump command from different position,but to the same position. You can see this situation in following code(this bytecode is just from one .pyc file and I don't have its source .py file): ...... 526 POP_TOP '' 527 LOAD_FAST 'imeHandle' 530 LOAD_ATTR 'isCnInput' 533 CALL_FUNCTION_0 '' 536 JUMP_IF_FALSE '574' 539 POP_TOP '' 540 LOAD_FAST 'GUIDefine' 543 LOAD_ATTR 'Can...

Nvidia's 'Nalu' vs ATI's 'Ruby'
http://karpo.org/images/Dunno/Ruby.jpg Nvidia's GeForce 6800 (NV40) 'Nalu' demo consists of 300,000 polygons. very very impressive shit! ATI's Radeon X800 (R420) 'Ruby' demo consists of only 80,000 polygons. however it is also rendering a background with other elements. closer to what would be in an actual game. now, console gamers: keep in mind, whatever ATI has been able to come up with at this point (re: the R420 / Radeon X800) is a stepping stone to what they'll be able to have in 2005 for Xbox Next, and in 2006 for GCNext :) On 14 Apr 2004 21:33:15 -0700, nvidianv55@mail.com (NV55) wrote: >http://karpo.org/images/Dunno/Ruby.jpg > >Nvidia's GeForce 6800 (NV40) 'Nalu' demo consists of 300,000 polygons. >very very impressive shit! > >ATI's Radeon X800 (R420) 'Ruby' demo consists of only 80,000 polygons. >however it is also rendering a background with other elements. closer >to what would be in an actual game. > >now, console gamers: keep in mind, whatever ATI has been able to come >up with at this point (re: the R420 / Radeon X800) is a stepping stone >to what they'll be able to have in 2005 for Xbox Next, and in 2006 for >GCNext :) Wow............. I am impressed !! Must ask for an advanced payment of my Social Security to buy these consoles. Both should sink like rocks if not 100%backward compatible with existing non-Next software. Also, a huge marketing problem for n...

Re: SAS Codes for calculating Moran's I and Geary's C #2
Dear All: Is there anybody who has implemented the spatial lag model: "y =3D pWy + X= B + error" and the spatial error model: "y=3DXB + Lamda*W*E + e" in SAS using maximum likelihood method? These models are proposed by Luc Anselin and implemented in his GeoDa package. Daniel Griffith has some SAS code for spatial autocorrelation model using proc nlin. His core code goes like this= : /*GRIFFITH SAS CODE FOR SPATIAL AUTOCOR. MODEL*/ data step1; start=3D0.999; finish=3D1; inc =3D 0.095; run; data step2; if _n_=3D1 then set step1; infile eigen; input obs eigenw; array j...

Are the number of predefined 'errno's the same across platforms? How to avoid clashing of 'errno's from different libraries?
In my ubuntu machine, there are the following 'errno's defined. I looked at the specification draft (n1256.pdf), and I didn't see how many 'errno's are defined. (Please let me know if I overlooked anything.) Are the number of predefined 'errno's the same across platforms? It seems that libraries other than C standard library can define their own 'errno's. I'm wondering how to avoid clashing of the 'errno's from different libraries? $ cat main.c #include<stdio.h> #include<string.h> int main(void) { int n; for(n ...

Web resources about - Any XL C/C++'s option to determine the compiler's predefined macros - comp.unix.aix

Resources last updated: 3/26/2016 6:35:42 PM