frank-w / scite-gui

Automatically exported from code.google.com/p/scite-gui
3 stars 0 forks source link

Error with gui.so >> gui.so: wrong ELF class : ELFCLASS32 #2

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
Just add into my Lua script :
    package.cpath = props["SciteUserHome"].."/?.so;"..package.cpath
    require "gui"

Error message :
    error loading module 'gui' from file '/XXXX/gui.so':
    /XXXX/gui.so: wrong ELF class : ELFCLASS32

I use scite 3.2.2 on lubuntu 12.04 64bits

I try to compile gui.so but when i make, i have another error :

GTKControl.h: In member function ‘virtual int GtkControl::GetControl()’:
GTKControl.h:26:40: error: cast from ‘GtkWidget* {aka _GtkWidget*}’ to 
‘int’ loses precision [-fpermissive]
lgui.cxx: In function ‘int do_CreatePageControl(lua_State*)’:
lgui.cxx:42:38: error: cast from ‘void*’ to ‘int’ loses precision 
[-fpermissive]
lgui.cxx: In function ‘int do_CreateListView(lua_State*)’:
lgui.cxx:54:38: error: cast from ‘void*’ to ‘int’ loses precision 
[-fpermissive]
lgui.cxx: In function ‘int do_CreateSplitter(lua_State*)’:
lgui.cxx:67:38: error: cast from ‘void*’ to ‘int’ loses precision 
[-fpermissive]
lgui.cxx: In function ‘int do_CreateButton(lua_State*)’:
lgui.cxx:80:38: error: cast from ‘void*’ to ‘int’ loses precision 
[-fpermissive]
lgui.cxx: In function ‘int do_CreateRadioGroup(lua_State*)’:
lgui.cxx:115:39: error: cast from ‘void*’ to ‘int’ loses precision 
[-fpermissive]
lgui.cxx: In function ‘int do_CreateCheckGroup(lua_State*)’:
lgui.cxx:131:38: error: cast from ‘void*’ to ‘int’ loses precision 
[-fpermissive]
lgui.cxx: In function ‘int do_CreateEdit(lua_State*)’:
lgui.cxx:146:38: error: cast from ‘void*’ to ‘int’ loses precision 
[-fpermissive]
lgui.cxx: In function ‘int do_CreateMemo(lua_State*)’:
lgui.cxx:160:38: error: cast from ‘void*’ to ‘int’ loses precision 
[-fpermissive]
make: *** [lgui.o] error 1

Original issue reported on code.google.com by cokinou....@gmail.com on 4 Sep 2012 at 4:14

pguimier commented 8 years ago

I second that problem. Exact same issues for me. Using wine, SciTE-ru is greate. Too bad it doesn't work natively for linux in 64b.

In file included from PageControl.h:3:0, from LuaControls.h:5, from lgui.cxx:19: GTKControl.h: In member function ‘virtual int GtkControl::GetControl()’: GTKControl.h:26:40: error: cast from ‘GtkWidget* {aka GtkWidget}’ to ‘int’ loses precision [-fpermissive] int GetControl() {return int(widget);}; ^ lgui.cxx: In function ‘int do_CreatePageControl(luaState)’: lgui.cxx:42:38: error: cast from ‘void_’ to ‘int’ loses precision [-fpermissive] int iParent=int(lua_touserdata(L,1)); ^ lgui.cxx: In function ‘int do_CreateListView(luaState)’: lgui.cxx:54:38: error: cast from ‘void_’ to ‘int’ loses precision [-fpermissive] int iParent=int(lua_touserdata(L,1)); ^ lgui.cxx: In function ‘int do_CreateSplitter(luaState)’: lgui.cxx:67:38: error: cast from ‘void_’ to ‘int’ loses precision [-fpermissive] int iParent=int(lua_touserdata(L,1)); ^ lgui.cxx: In function ‘int do_CreateButton(luaState)’: lgui.cxx:80:38: error: cast from ‘void_’ to ‘int’ loses precision [-fpermissive] int iParent=int(lua_touserdata(L,1)); ^ lgui.cxx: In function ‘int do_CreateRadioGroup(luaState)’: lgui.cxx:115:39: error: cast from ‘void_’ to ‘int’ loses precision [-fpermissive] int iParent=int (lua_touserdata(L,1)); ^ lgui.cxx: In function ‘int do_CreateCheckGroup(luaState)’: lgui.cxx:131:38: error: cast from ‘void_’ to ‘int’ loses precision [-fpermissive] int iParent=int(lua_touserdata(L,1)); ^ lgui.cxx: In function ‘int do_CreateEdit(luaState)’: lgui.cxx:146:38: error: cast from ‘void_’ to ‘int’ loses precision [-fpermissive] int iParent=int(lua_touserdata(L,1)); ^ lgui.cxx: In function ‘int do_CreateMemo(luaState)’: lgui.cxx:160:38: error: cast from ‘void_’ to ‘int’ loses precision [-fpermissive] int iParent=int(luatouserdata(L,1)); ^ make: ** [lgui.o] Erreur 1