lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


could you send the .pkg file? It seems you are trying to bind a callback function, are you?
tolua does not provide such support.

-- waldemar

On Aug 3, 2007, at 1:21 PM, L-28C wrote:

Umm... You wouldn't mind telling me why I get a lot of compiler errors, would you? :-)

Here's my toLua command line:
tolua -o Image_lua.cpp -H Image_lua.hpp Image.pkg

And here are the last three errors (I can't even see the whole list!):

--------------------------------
./src/ScriptAPI/Image_lua.cpp:709: error: cannot convert `const char*' to `int (
*)(lua_State*)' for argument `3' to `void tolua_function(lua_State*, char*, int
(*)(lua_State*))'
./src/ScriptAPI/Image_lua.cpp:710: error: cannot convert `const char*' to `int (
*)(lua_State*)' for argument `3' to `void tolua_function(lua_State*, char*, int
(*)(lua_State*))'
./src/ScriptAPI/Image_lua.cpp:711: error: cannot convert `const char*' to `int (
*)(lua_State*)' for argument `3' to `void tolua_function(lua_State*, char*, int
(*)(lua_State*))'
make: *** [obj/Image_lua.o] Error 1
--------------------------------

Thanks!

Leo M. Cabrera wrote:
Waldemar Celes wrote:
If tolua is enough for your use, I've just updated it to Lua 5.1.
Check www.tecgraf.puc-rio.br/~celes/tolua <http://www.tecgraf.puc-rio.br/%7Eceles/tolua>

-- waldemar
Yes, I read tolua++ is just for inheritance and stuff... I only have plain ol' classes.
And it compiles well for this noob too! :-D
Thanks!




On Aug 2, 2007, at 9:05 PM, L-28C wrote:

Hello everyone!

First of all: I'm sorry for being such a noob with Lua and toLua and asking so many questions... :-(

Second of all: Why the heck does toLua++ insist on using SCons? Why not just a makefile?

Third of all: How can I set SCons to use Cygwin instead of MSVC? No matter what I change in the SConstruct file, I keep getting MSVC's compiler... I even renamed MSVC's bin folder, however I got 'cl: command not found', which sucks.

Help? Thanks in advance!




-- waldemar