Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - _pack64.h bug?: (3 Items)
   
_pack64.h bug?  
Code snippet from _pack64.h:
#if defined(__WATCOMC__)
 #pragma pack(__push,8);
#elif defined(__HIGHC__)
 #pragma push_align_members(64);
#elif defined(__GNUC__)
 #if defined (__PRAGMA_PACK_PUSH_POP__)
  #pragma pack(push, 0)
 #else 
  #pragma pack()
 #endif
#elif defined(__INTEL_COMPILER)
 #pragma pack(push, 0)
#elif defined(__MWERKS__)
#else
 #error Compiler not supported
#endif
I find that I am getting compile errors from the line:   #pragma pack(push, 0)

The errors are attributed to no ";" at the end of the line. Note that some other #pragma lines DO have the ";"

Is there a bug in this particular header?
Re: _pack64.h bug?  
On 11-05-19 02:33 PM, Mark Levy wrote:
> The errors are attributed to no ";" at the end of the line. Note that
> some other #pragma lines DO have the ";"
>
> Is there a bug in this particular header?

#pragma directive don't need a trailing semi-colon. Can you attach a 
small preprocessed file showing the error?

Regards,

Ryan Mansfield
RE: _pack64.h bug?  
It is possible that I was seeing a problem related to a header file mismatch. We are using Eigen in our system and our 
supplier sent us code that had been using Eigen 2.0.12. I installed Eigen 3.0.0 and that may have caused the problem. 
Not sure, but I will keep looking for it to come back. I'll let you know if I see it again.

I do agree that #pragma does not need a trailing ";" However, there are still #pragmas in the file as distributed that 
do have them. Why are those needed? And why don't the other lines need them?

While I have your attention, I have an issue with Momentics IDE. The console window does not have enough buffer space to
 display all of the lines of my build output. I have unchecked the box that sets a size limit, but it is still way too 
small. Is there a fix for that?

Thanks!

-----Original Message-----
From: Ryan Mansfield [mailto:community-noreply@qnx.com]
Sent: Thursday, May 19, 2011 1:42 PM
To: ostech-core_os
Subject: Re: _pack64.h bug?

On 11-05-19 02:33 PM, Mark Levy wrote:
> The errors are attributed to no ";" at the end of the line. Note that
> some other #pragma lines DO have the ";"
>
> Is there a bug in this particular header?

#pragma directive don't need a trailing semi-colon. Can you attach a
small preprocessed file showing the error?

Regards,

Ryan Mansfield



_______________________________________________

OSTech
http://community.qnx.com/sf/go/post85961





This electronic mail transmission contains information from P&H Mining Equipment which is confidential, and is intended 
only for the use of the proper Addressee. If you are not the intended recipient, please notify us immediately at the 
return address on this transmission, or by telephone at (414) 670-4400, and delete this message and any attachments from
 your system. Unauthorized use, copying, disclosing, distributing, or taking any action in reliance on the contents of 
this transmission is strictly prohibited and may be unlawful. Privacy-PHUS