logo       

Malformed pragma: msg#00154

lib.uclibc.general

Subject: Malformed pragma

Hi,
 
I'm trying to compile a networked application that makes use of 'pragma pack' to ensure that structures are exactly the same whatever the platform is.
Code is
#pragma pack(1)
  Structure definitions
#pragma pack(0)
 
But when ever I compile I get the following message:
 Warning 'malformed pragma'
And then, a parse error.
Info: without pragmas, the program compiles fine. 
 
I'm using the latest coldfire uClinux distribution and I really do not know how to fix this problem.
 
I'd be grateful for comments/ideas/solutions,
 
Cheers,
 
Patrice
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise