PGI User Forum
 SearchSearch   MemberlistMemberlist     RegisterRegister   ProfileProfile    Log inLog in 

Free OpenACC Webinar

__STDC_VERSION__ missing?

 
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling
View previous topic :: View next topic  
Author Message
Christopher Hulbert



Joined: 01 Dec 2005
Posts: 76

PostPosted: Thu Apr 13, 2006 7:31 am    Post subject: __STDC_VERSION__ missing? Reply with quote

I tried using the __STDC_VERSION__ macro to test the ISO C version, but pgcc doesn't support this? gcc 4 supports this when using -std=c99

test.c:

#include <stdlib.h>
#include <stdio.h>

int main(void)
{
printf("%ld",__STDC_VERSION__);
}


$ pgcc -c9x test.c
PGC-S-0039-Use of undeclared variable __STDC_VERSION_ (test.c: 6)
Back to top
View user's profile
Christopher Hulbert



Joined: 01 Dec 2005
Posts: 76

PostPosted: Thu Apr 13, 2006 7:35 am    Post subject: Reply with quote

I forgot to mention the version:

pgcc 6.1-1 64-bit target on x86-64 Linux
Back to top
View user's profile
mkcolg



Joined: 30 Jun 2004
Posts: 6208
Location: The Portland Group Inc.

PostPosted: Thu Apr 13, 2006 2:13 pm    Post subject: Reply with quote

Hi Christopher,

Thank you for pointing this out. While we have a few C99 features that have yet to be added, I think this was an oversite. I have added a technical problem report (TPR#3805) and we should be able to correct this in the near future.

- Mat
Back to top
View user's profile
Display posts from previous:   
Post new topic   Reply to topic    PGI User Forum Forum Index -> Programming and Compiling All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group