Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Shutdown header: (4 Items)
   
Shutdown header  
Hi all, 

I'm working on Qnx 7.0 trying to integrate shutdown API's into my C++ project. 

I'm facing build issues since the "ProcessInfo_t" structure in the "sys/shutdown.h" header consists a variable named "
class" and C++ compiler doesn't consider it as a variable

How can this be resolved?
Re: Shutdown header  
Perhaps try:

#define class _class

Prior to including the header followed by

#undef class


On 2018-07-24, 2:52 AM, "Sri Harsha Koribille" <community-noreply@qnx.com> wrote:

    Hi all, 
    
    I'm working on Qnx 7.0 trying to integrate shutdown API's into my C++ project. 
    
    I'm facing build issues since the "ProcessInfo_t" structure in the "sys/shutdown.h" header consists a variable named
 "class" and C++ compiler doesn't consider it as a variable
    
    How can this be resolved?
    
    
    
    _______________________________________________
    
    OSTech
    http://community.qnx.com/sf/go/post118992
    To cancel your subscription to this discussion, please e-mail ostech-core_os-unsubscribe@community.qnx.com
    

Re: Shutdown header  
Thanks :)
It's working

But I don't think it's a good idea to use such a variable name
Re: Shutdown header  
that name most certainly is from a time before C++ ...

On Wed, 2018-07-25 at 09:06 -0400, Sri Harsha Koribille wrote:

Thanks :)
It's working

But I don't think it's a good idea to use such a variable name



_______________________________________________

OSTech
http://community.qnx.com/sf/go/post119008
To cancel your subscription to this discussion, please e-mail ostech-core_os-unsubscribe@community.qnx.com<mailto:ostech
-core_os-unsubscribe@community.qnx.com>;

Attachment: HTML sf-attachment-mime36866 859 bytes