Re: [Dev-C++] va_list - error comparing with NULL on Itanium
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ross B. <bu...@pa...> - 2006-12-12 06:16:12
|
Only think I can think may be there problem is NULL is defined in
another way, eg Null or null.
Radhika M G wrote:
> Hi,
>
>
>
> I have this piece of code which compiles on HP11i (HP11.11) machine but
> throws error on HP Itanium (HP 11.23).
>
>
>
> #include<stdarg.h>
>
>
>
> main()
>
> {
>
> va_list ptr;
>
>
>
> if(ptr == NULL)
>
> printf("It works!");
>
> else
>
> printf("It does not work!\n");
>
>
>
> }
>
>
>
> The error thrown on itanium is:
>
> "rad.c", line 8: error #2041: expression must have arithmetic or pointer
> type
>
> if(ptr == NULL)
>
>
>
> What changes do I make in the code so that the code compiles on both
> HP11.11 and HP11.23?
>
>
>
> Regards,
>
> Radhika
>
>
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.432 / Virus Database: 268.15.16/582 - Release Date: 11/12/06 16:32
|