Member Avatar for I_m_rude

What Can I do so as to stop compiler not to do padding in the structures ? is there any pragma or something like that which i can use ? thanks in advance. now, "ANY" response will be appreciated. :-D

deceptikon commented: Much better. :) +0

Recommended Answers

All 4 Replies

Some compilers will add a pragma that allows you to do this, usually with the name "pack".

Here's one for Visual Studio and one for GCC.

Member Avatar for I_m_rude

@deceptikon your second link is not working which i want (gcc). I hope you will check and provide same or any other link to me. thanks to you. any other response will also be appreciated.

Try this one. :rolleyes:

Member Avatar for I_m_rude

okay @decptikon. that link was really helpful.today, I learnt how to search. my knowledge has increased much. and I want to ask you one thing here, Can i get any other link also ? just like this informative link as i am too greedy in matter of information. Any other link if anybody want to share, that will also be apprecited. thanks in advance.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.