Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

VC9 & #pragma pack problem

Help
weidmann
2011-02-21
2013-05-13
  • weidmann
    weidmann
    2011-02-21

    I have successfuly built STLPort 5.2.1 using VC9 win32.

    However, when I am compiling code including <afx.h> I get the following warnings:

    warning C4103: 'c:\svn\stlport-5.2.1\stlport\stl\_cprolog.h' : alignment changed after including header, may be due to missing #pragma pack(pop)
    

    The same code builds with no problem using VC7.1

    If I remove the #pragma pack stuff from STLPort includes _prolog.h & _epilog.h, the warnings disappear.

    Any real solution to this problem?

    Thanks for your help,

    Nicolas