Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

gcc's pragma pack

807578Jan 20 2006 — edited Jan 21 2006
I have inherited some linux code which uses gcc's pragma pack(push, n) and pragma pack(pop).
#pragma pack(push, n)
#pragma pack(pop)

When I try to compile this code using gcc on Solaris/sparc I get:

warning: #pragma pack(push[, id], <n> is not supported on this warning: #pragma pack(pop[, id], <n> is not supported on this target

Anyone know how I can get past this problem. Is there an equivalent pragma that I can use with gcc for Solaris/sparc. Or is there an way to use something equivalent and compile with Sun studio 11.

Thanks in advance!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 18 2006
Added on Jan 20 2006
1 comment
1,191 views