Hi everyone,
I'm building openimageio on linux. In src/include/export.h, OIIO_API gets set
to to __attribute__ ((visibility ("default"))).
It seems to work fine for functions and classes, but I get warnings and errors
when this is used with enums. For example:
imagebufalgo.h:94: warning: type attributes are honored only at type definition
imagebufalgo.h:94: error: use of enum ‘AlignedTransform’ without previous
declaration
imagebufalgo.h:95: error: expected unqualified-id before ‘{’ token
code looks like:
enum OIIO_API AlignedTransform
{
TRANSFORM_NONE = 0,
TRANSFORM_FLIP, // Upside-down
TRANSFORM_FLOP, // Left/Right Mirrored
TRANSFORM_FLIPFLOP, // Upside-down + Mirrored (Same as 180 degree
rotation)
// TRANSFORM_ROT90, // Rotate 90 degrees clockwise. Image remains in
positive quadrant.
// TRANSFORM_ROT180, // Rotate 180 degrees clockwise. Image remains in
positive quadrant. (Same as FlipFlop)
// TRANSFORM_ROT270, // Rotate 270 degrees clockwise. Image remains in
positive quadrant.
};
Is the syntax for ___attribute___ different for enums? Thanks.
Sheila
_______________________________________________
Oiio-dev mailing list
[email protected]
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org