Hi,

thanx for pointing this out, its quite annoying for qt-newbies to find out why 
it doesn't work (Happens also often if you need to include X11 Libraries). 
This quirk is around since the beginnings of Qt. Maybe trolltech manages to 
fix it in the upcoming 4.0 release ...

Regards

Matthias
On Wednesday 11 August 2004 11:17, Sandra Helsper wrote:
> Hi
>
> Here is just a short information for openSG users who also use qt. There
> is a problem concerning the order of include-files.
> If you do it that way:
>
> #include <OSGVRMLSceneFileType.h>
> #include "qapplication.h"
>
> there will be a compiler error
> C:\Qt\3.3.1\\include\qnamespace.h(318): error: expected an identifier
>    META          = 0x00100000,
>
> The reason is that OSGScanParseSkel.tab.h is indirektly included by
> OSGVRMLSceneFileType.h and contains a define for META:
> #define META 275
>
> qapplication.h includes qnamespace.h which contains an enumeration:
> enum Modifier {  // accelerator modifiers
>  META          = 0x00100000,
>  SHIFT         = 0x00200000,
>  CTRL          = 0x00400000,
>  ALT           = 0x00800000,
>  MODIFIER_MASK = 0x00f00000,
>  UNICODE_ACCEL = 0x10000000,
>  ASCII_ACCEL = UNICODE_ACCEL // 1.x compat
> };
>
>
> The problem can easily be solved by changing the order of the
> include-files.
> #include "qapplication.h"
> // qapplication.h must be included before this because of conflicts
> concerning META
> #include <OSGVRMLSceneFileType.h>
>
>
> Sandra Helsper
> graphiX GmbH
>
>
>
> -------------------------------------------------------
> SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
> 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
> Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
> http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
> _______________________________________________
> Opensg-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/opensg-users



-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to