【发布时间】:2010-12-04 09:45:49
【问题描述】:
我正在尝试制作一个使用 OpenCV 和另一个 C++ 库的 iPhone 应用程序。 它似乎可以编译和链接。它确实有效。 只是我想摆脱这个丑陋的警告:
ld: warning: std::vector<int, std::allocator<int> >::_M_insert_aux(__gnu_cxx::__normal_iterator<int*, std::vector<int, std::allocator<int> > >, int const&)has different visibility (default) in /Users/nacho4d/Documents/Projects/iOS/iAR/opencv_device/lib/libcxcore.a(cxdatastructs.o) and (hidden) in /Users/nacho4d/Documents/Projects/iOS/iAR/build/iAR.build/Debug-iphoneos/iAR.build/Objects-normal/armv6/combination.o
这是什么意思?,我该如何解决?
以防万一,这是组合类的头文件,来自我提到的库。
//combination.h
typedef std::vector<int> combi;
typedef std::vector< combi > allcombi;
class Combination
{
public:
void Init(const int n, const int m);
allcombi::iterator begin();
allcombi::iterator end();
allcombi::const_iterator begin() const;
allcombi::const_iterator end() const;
private:
void Nest(int nest, int column, int n1, int n2, int k[], allcombi &result);
private:
allcombi m_data;
};
提前致谢
伊格纳西奥
【问题讨论】:
-
我很确定这是个骗子。