From: <and...@hi...> - 2006-02-08 21:02:12
|
Hi Marcelo I checked it and it works beautifully now. Thank you very much indeed+ Regards Andreas >Ok, it is solved now, but sourceforge.net CVS is down. > >Anyway, the fix will be to 1.3.28 before final release. > >Marceki > >and...@hi... wrote: > >>Hi >> >>I recently run into the following problem where swig generated duplicate = symbols. Incidentally, this problem already existed in swig-1.3.27, as well= as in 1.3.28rc2. >> >>Consider the following file (test.i): >>%module(directors=3D"1") test >>%feature("director"); >> >>%{ >> class A { >> public: >> A() {}; >> virtual ~A() {}; >> protected: >> virtual void draw() {}; >> }; >> >> class B : public A { >> public: >> B() {}; >> virtual ~B() {}; >> protected: >> void draw() {}; >> void draw(int arg1) {}; >> }; >> >>%} >> >> class A { >> public: >> A() {}; >> virtual ~A() {}; >> protected: >> virtual void draw() {}; >> }; >> >> class B : public A { >> public: >> B() {}; >> virtual ~B() {}; >> protected: >> void draw() {}; >> void draw(int arg1) {}; >> }; >> >>Compiling this with the command line: >>swig -module test -DPYTHON -python -c++ -shadow -modern -dirprot -O -o te= st_wrap.cpp test.i >> >>results in the symbol _wrap_B_draw__SWIG_0 defined twice. >>Before you flame me, the above code is not mine, but is part of the libra= ry I am trying to wrap. Hints and suggestions are most welcome. >> >>Regards >> >>Andreas Held >>http://pyfltk.sourceforge.net >> >> >> >> >>------------------------------------------------------- >>This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les >>for problems? Stop! Download the new AJAX search engine that makes >>searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! >>http://sel.as-us.falkag.net/sel?cmd=FFk&kid=103432&bid#0486&dat=121642 >>_______________________________________________ >>Swig-user mailing list >>Swi...@li... >>https://lists.sourceforge.net/lists/listinfo/swig-user >> >>=20=20 >> > > > |