|
From: Kirti V. <ki...@ya...> - 2008-05-21 19:42:25
|
Hi Matthias,
Thanks for the reply.
However, the following error is the result now.
$ swig -c++ -perl5 Exception.i
Exception.i:15: Warning(401): Nothing known about base class 'exception'.
Ignored.
When the Exception.i contains
------------------
%module yrbperl
%{
#include <string>
#include "Exception.h"
%}
%import "std/std_except.i"
%import "exception.i"
using namespace std;
class RBException : public exception
{
public:
RBException() ;
-------------------
And the same error for
----------------------
%module yrbperl
%{
#include <string>
#include "Exception.h"
%}
%include "std/std_except.i"
using namespace std;
class RBException : public exception
{
--I am at my wit's ends...
Thanks & regards-
Kirti
On 5/20/08 12:55 AM, "Nitro" <ni...@dr...> wrote:
> Am 20.05.2008, 09:49 Uhr, schrieb Nitro <ni...@dr...>:
>
>>
>>> And here is the start of the interface file:
>>> -----------
>>> %module yrbperl
>>>
>>> %{
>>> #include "Exception.h"
>>> #include <string>
>>> %}
>>
>> Insert something like %include "std/std_except.i" here.
>
> And of course this line:
>
> using namespace std;
>
> or
>
> using std::exception;
>
>>> %include "exception.i"
>>>
>>>
>>> class RBException : public exception
>>> {
>>> -------------
>>
>> -Matthias
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> Swig-user mailing list
>> Swi...@li...
>> https://lists.sourceforge.net/lists/listinfo/swig-user
>
>
|