John Labenski wrote:
>  This should be fixable if I
> can get a simple example of what makes the binder crash.
>
> %typedef a2dPoint2D wxPoint2DDouble
>
> %function a2dPoint2D GetPoint()
> %function void SetPoint(const a2dPoint2D& pt)
>   
Here is there error i get, and after that the wrapping code i used

c:\data\art2d\a2d288deb\modules\luawraps\src>genwxbind.bat | more
Generating wxWidgets Binding
c:/data/art2d/wxluacvs/wxLua\bin\vc_lib\lua: 
c:/data/art2d/wxluacvs/wxLua\bindings\genwxbind.lua:3712: attempt to 
index field '?' (a nil value)
stack traceback:
        c:/data/art2d/wxluacvs/wxLua\bindings\genwxbind.lua:3712: in 
function 'GenerateLuaLanguageBinding'
        c:/data/art2d/wxluacvs/wxLua\bindings\genwxbind.lua:1473: in 
function 'WriteWrapperFiles'
        c:/data/art2d/wxluacvs/wxLua\bindings\genwxbind.lua:4915: in 
function 'main'
        c:/data/art2d/wxluacvs/wxLua\bindings\genwxbind.lua:4933: in 
main chunk
        [C]: ?
Loaded rules file: luawraps_rules.lua
Loaded datatypes cache file: 
c:/data/art2d/wxluacvs/wxLua/bindings/wxwidgets/wx_datatypes.lua
Timing: BuildDataTypeTable 0 seconds.
Timing: ParseData 0 seconds.
Done luawraps

------------------------------------
This LINE is the problem line in the next code:

     a2dPoint2D GetTranslation() const

But as you can see, i out commented many things which also give problems.

--------------------- Here the wrapped code --------

// *****************************************************************
// artbase/include\afmatrix.h
// *****************************************************************

%typedef a2dPoint2D wxPoint2DDouble

// 
---------------------------------------------------------------------------
// a2dAffineMatrix
// 
---------------------------------------------------------------------------

%include "artbase/include/afmatrix.h"
%class %noclassinfo  %encapsulate a2dAffineMatrix
    a2dAffineMatrix( double xt, double yt, double scalex = 1, double 
scaley = 1, double degrees = 0 )
    a2dAffineMatrix()
    a2dAffineMatrix( const a2dAffineMatrix& mat )
    %operator void operator = ( const a2dAffineMatrix& mat )
    %operator bool operator == ( const a2dAffineMatrix& a, const 
a2dAffineMatrix& b )
    %operator bool operator != ( const a2dAffineMatrix& a, const 
a2dAffineMatrix& b )
    //%operator a2dAffineMatrix&          operator*=( const 
a2dAffineMatrix& m )
    //%operator a2dAffineMatrix           operator*( const 
a2dAffineMatrix& m ) const
    //%operator a2dAffineMatrix operator-( const a2dAffineMatrix& a, 
const a2dAffineMatrix& b )
    //static a2dAffineMatrix Mul( const a2dAffineMatrix &m1, const 
a2dAffineMatrix &m2 )
    //double& operator()( int col, int row )
    //%operator double& operator()( int col, int row )
    //double operator()( int col, int row ) const
    //%operator double operator()( int col, int row ) const
    a2dPoint2D GetTranslation() const
    //%member double  m_matrix[3][2]
    %member bool    m_isIdentity
%endclass


%define a2dACCUR 1e-6
//%define Round( x ) (int) floor( (x) + 0.5 )




-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to