Afficher un message
Vieux 29/06/2008, 23h26   #1
aneuryzma
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut "ISO C++ forbids declaration of uchar with no type"

Hello,

I'm merging an OpenCV app with an Ogre3d app. I'm on a mac, I'm using
xCode.

When I add #include "openCVApp.h"

I got the following error:


"Applications/openCV/OpenCV.framework/Headers/cxtypes.h:549: error:
ISO C++ forbids declaration of 'uchar' with no type
/Applications/openCV/OpenCV.framework/Headers/cxtypes.h:549: error:
expected ';' before '*' token
/Applications/openCV/OpenCV.framework/Headers/cxtypes.h: In function
'CvMat cvMat(int, int, int, void*)':
/Applications/openCV/OpenCV.framework/Headers/cxtypes.h:625: error:
'union CvMat::<anonymous>' has no member named 'ptr'
/Applications/openCV/OpenCV.framework/Headers/cxtypes.h:625: error:
'uchar' was not declared in this scope
/Applications/openCV/OpenCV.framework/Headers/cxtypes.h:625: error:
expected primary-expression before ')' token
/Applications/openCV/OpenCV.framework/Headers/cxtypes.h:625: error:
expected `;' before 'data'
/Applications/openCV/OpenCV.framework/Headers/cxtypes.h: In function
'double cvmGet(const CvMat*, int, int)':
/Applications/openCV/OpenCV.framework/Headers/cxtypes.h:654: error:
'const union CvMat::<anonymous>' has no member named 'ptr'
/Applications/openCV/OpenCV.framework/Headers/cxtypes.h:658: error:
'const union CvMat::<anonymous>' has no member named 'ptr'
/Applications/openCV/OpenCV.framework/Headers/cxtypes.h: In function
'void cvmSet(CvMat*, int, int, double)':
/Applications/openCV/OpenCV.framework/Headers/cxtypes.h:671: error:
'union CvMat::<anonymous>' has no member named 'ptr'
/Applications/openCV/OpenCV.framework/Headers/cxtypes.h:675: error:
'union CvMat::<anonymous>' has no member named 'ptr'
/Applications/openCV/OpenCV.framework/Headers/cxtypes.h: At global
scope:
/Applications/openCV/OpenCV.framework/Headers/cxtypes.h:708: error:
ISO C++ forbids declaration of 'uchar' with no type
....
...
....


any suggestion ?
  Réponse avec citation
 
Page generated in 0,05687 seconds with 9 queries