Hi

Sorry for my English, it is not my native language...


Windows2000, MinGW
$ gcc -v
Reading specs from c:/MinGW/bin/../lib/gcc/mingw32/3.4.2/specs
Configured with: ../gcc/configure --with-gcc --with-gnu-ld --with-gnu-as --host=mingw32 --target=mingw32 --prefix=/mingw --enable-threads --disable-nls --enable-languages=c,c++,f77,ada,objc,java --disable-win32-registry --disable-shared --enable-sjlj-exceptions --enable-libgcj --disable-java-awt --without-x --enable-java-gc=boehm --disable-libgcj-debug --enable-interpreter --enable-hash-synchronization --enable-libstdcxx-debug
Thread model: win32
gcc version 3.4.2 (mingw-special)

When i try compile latest snapshot wxLua_Snapshot_2006-06-07.tar.gz, I get error.....

.././bk-deps g++ -c -o wxbind_dll_wx_bind.o -I../modules/wxbind/setup -I../modules -I./.. -DWXMAKINGDLL_WXBIND -I/usr/local/lib/wx/include/msw-ansi-release-2.6 -I/usr/local/include/wx-2.6 -D__WXMSW__ -mthreads -DWXUSINGDLL=1 -DNO_GCC_PRAGMA -g0 -O2 ../modules/wxbind/src/wx_bind.cpp
../modules/wxbind/src/wx_bind.cpp: In function `int wxLua_function_wxHandleFatalExceptions(lua_State*)':
../modules/wxbind/src/wx_bind.cpp:4061: error: `wxHandleFatalExceptions' undeclared (first use this function)
../modules/wxbind/src/wx_bind.cpp:4061: error: (Each undeclared identifier is reported only once for each function it appears in.)
../modules/wxbind/src/wx_bind.cpp:3017: confused by earlier errors, bailing out
make[1]: *** [wxbind_dll_wx_bind.o] Error 1
make[1]: Leaving directory `/home/Ldn/wxLua/modules'
make: *** [modules] Error 2


Problem is here

modules/wxbind/wx_bind.cpp:4060

static int LUACALL wxLua_function_wxHandleFatalExceptions(lua_State *L)
{
wxLuaState wxlState(L);
bool returns;
// get number of arguments
int argCount = lua_gettop(L);
// bool doIt = true
bool doIt = (argCount >= 1 ? wxlState.GetBooleanType(1) : true);
// call wxHandleFatalExceptions
returns = wxHandleFatalExceptions(doIt);
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
// push the result flag
lua_pushboolean(L, returns);

return 1;
}

If I am remark it

//returns = wxHandleFatalExceptions(doIt);

and continue compiling I get error

$ make
(cd ./modules/ && make )
make[1]: Entering directory `/home/Ldn/wxLua/modules'
.././bk-deps g++ -c -o wxbind_dll_wx_bind.o -I../modules/wxbind/setup -I../modules -I./.. -DWXMAKINGDLL_WXBIND -I/usr/local/lib/wx/include/msw-ansi-release-2.6 -I/usr/local/include/wx-2.6 -D__WXMSW__ -mthreads -DWXUSINGDLL=1 -DNO_GCC_PRAGMA -g0 -O2 ../modules/wxbind/src/wx_bind.cpp
../modules/wxbind/src/wx_bind.cpp: In function `WXLUAOBJECT* wxLuaGetObjectList_wx(size_t&)':
../modules/wxbind/src/wx_bind.cpp:3017: internal compiler error: output_operand: invalid _expression_ as operand
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.mingw.org/bugs.shtml> for instructions.
make[1]: *** [wxbind_dll_wx_bind.o] Error 1
make[1]: Leaving directory `/home/Ldn/wxLua/modules'
make: *** [modules] Error 2

Problem is here
modules/wxbind/wx_bind.cpp:2941

#if wxLUA_USE_wxPointSizeRect
{ &wxDefaultPosition, 0, "wxDefaultPosition", &s_wxluatag_wxPoint },
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
{ &wxDefaultSize, 0, "wxDefaultSize", &s_wxluatag_wxSize },
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
#endif


Can you help me to compile wxLua under win32 with MinGW?

_______________________________________________
Wxlua-users mailing list
Wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to