StackOverflow Questions for Tag: pragma-pack

David Stuckey
David Stuckey

Reputation: 33

C++ padding of struct still occurs when using #pragma pack

Score: 3

Views: 181

Answers: 1

Read More
Valerii Chistyakov
Valerii Chistyakov

Reputation: 51

Struct alignment is always 4

Score: 1

Views: 122

Answers: 1

Read More
Ernestina Lede
Ernestina Lede

Reputation: 11

I don't understand this mistake about #pragma

Score: 1

Views: 182

Answers: 0

Read More
Colins2
Colins2

Reputation: 11

What is the alternative to using #pragma pack (push n) and #pragma pack (pop)

Score: 1

Views: 616

Answers: 0

Read More
Joshua Fenner
Joshua Fenner

Reputation: 355

Nim: How to wrap a c struct that contains bitfields?

Score: 1

Views: 479

Answers: 1

Read More
Cool Camel
Cool Camel

Reputation: 77

pragma pack(n) vs pragma pack(push,n)

Score: 2

Views: 4989

Answers: 1

Read More
Moonlight Crusader
Moonlight Crusader

Reputation: 5

What is the effect of #pragma pack() when it follows a struct definition?

Score: 0

Views: 312

Answers: 1

Read More
Priya Purushoth
Priya Purushoth

Reputation: 38

Problem in converting Packed C structs to go structure by cgo

Score: 1

Views: 409

Answers: 1

Read More
Nishikant
Nishikant

Reputation: 95

Forgot pragma pack(pop) program crashes

Score: 0

Views: 62

Answers: 0

Read More
MarcusS
MarcusS

Reputation: 186

Influence of #pragma pack on outer struct?

Score: 1

Views: 155

Answers: 0

Read More

How to align a structure correctly?

Score: 0

Views: 187

Answers: 1

Read More
Cenoc
Cenoc

Reputation: 11682

#pragma pack effect

Score: 310

Views: 345271

Answers: 11

Read More
Adeishere
Adeishere

Reputation: 51

C macro for inlining functions with IAR compiler

Score: 0

Views: 481

Answers: 2

Read More
Phenglei Kai
Phenglei Kai

Reputation: 423

Byte layout of structure (#pragma pack behavior) different on MSVC vs clang/gcc

Score: 0

Views: 667

Answers: 1

Read More
ZenJ
ZenJ

Reputation: 311

Why #pragma pack also affects structs' own alignment?

Score: 2

Views: 921

Answers: 2

Read More
Slaus
Slaus

Reputation: 2230

#pragma pack(1) causes segmentation fault

Score: 0

Views: 731

Answers: 1

Read More
Alex
Alex

Reputation: 23

wcslen() returns incorrect result when pragma pack used

Score: 1

Views: 512

Answers: 1

Read More
vkj
vkj

Reputation: 43

pragma pack(push) without corresponding pop leads to stack smashing

Score: 2

Views: 1111

Answers: 1

Read More
Keith Thompson
Keith Thompson

Reputation: 263627

Is gcc's __attribute__((packed)) / #pragma pack unsafe?

Score: 207

Views: 200147

Answers: 5

Read More
Akay
Akay

Reputation: 1132

Copying a struct into a byte array

Score: 1

Views: 5079

Answers: 2

Read More
PreviousPage 1Next