I'm trying to compile the following on Linux GCC:
bool hasProperty(enum ITEMPROPERTY prop) const;
This declaration is in a header file. This header file also includes another header which has ITEMPROPERTY declared and implemented:
enum ITEMPROPERTY { HOPE_MODERATION_FIND_THIS_CLEAR_ENOUGH = 0 }
Following error occurs:
Use of Enum 'ITEMPROPERTY' without previous declaration
It won't happen when compiling using Visual Studio 2015. (vc140 toolset).
What could it be? I just updated my GCC to 6.3.0 and the problem remains.
No namespaces are being used in this code.
Aucun commentaire:
Enregistrer un commentaire