Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SWIG - Nothing known about base class

843829Oct 13 2006
Here is a small piece of my interface file mpe.i:
%module MpeExceptionI
%include java\std_except.i
%{
#include "MpeApi.h"
%}

namespace MpeApi
{
 class MpeException : public runtime_error
 {
   public:
   MpeException (const string& what, Result result = MMA_FAILURE);
   Result GetResult ();

   private:
     Result    m_result;
 };

}
When I run SWIG as follows:
swig -c++ -java mpe.i
I get an error message:
mpe.i(10): Warning(401): Nothing known about base class 'runtime_error'.  Ignored.
From what I can tell, std_except.i includes <stdexcept>, and this is where runtime_error is defined.
What am I doing wrong?

Thanks!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 10 2006
Added on Oct 13 2006
0 comments
677 views