From: Yoann C. <spa...@ho...> - 2012-07-18 12:24:17
|
Hi, I want to expose a C++ class with Swig 2.0.7. But I have an error :error C2248: 'A::setName' : cannot access protected member declared in class 'A' ---------------------------------struct A{ blablaprotected: bool do_init() virtual void setName(std::string& name);}--------------------------------- and in my interface file, I have : ---------------------------------%module A %{#include "A.hpp"%} %include "A.hpp"--------------------------------- setName() is protected so I thought Swig just ignore it, but he give me an error. I have try to ignore the function with the %ignore directive but it don't work. thanks |