OpenCV CV_EXPORTS

问题描述 投票:-2回答:1

在位于opencv \ build \ include \ opencv2 \ core \ matx.hpp的matx.hpp库中,有struct CV_EXPORTS Matx_AddOp {};代码。任何人都可以帮助我这是什么意思或什么类型的数据是Matx_AddOp。

c++ opencv opencv3.0
1个回答
0
投票

CV_EXPORTS是一个宏。它在cvdef.h中定义。

# if (defined _WIN32 || defined WINCE || defined __CYGWIN__)
#   define CV_EXPORTS __declspec(dllexport)
# elif defined __GNUC__ && __GNUC__ >= 4
#   define CV_EXPORTS __attribute__ ((visibility ("default")))
# endif

所以它不是一种类型!!你应该认为结构更像这样:

struct Matx_AddOp {}

这意味着,它是一个空结构。

© www.soinside.com 2019 - 2024. All rights reserved.