lua-users home
lua-l archive

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




Miles Bader escribió:
"Roger D. Vargas" <luo_hei@yahoo.es> writes:
Im testing swig for wrapper code generation and according to docs, it
should be easy: swig -lua -c++ classA.i
This generates the required code, and such code should have a function
named ClassA_Init(). What I have found is that such function is not
created. Can somebody tell me if Im missing some step?

Why do you think it should have a function (Lua function? C++ function?)
called "ClassA_Init"?
Because the SWIG docs say so. The C++ wrapper code generated by SWIG should have such function, and also have found that it can be named luaopen_ClassA(). But none of both works.


--
http://dsgp.blogspot.com | Linux, programación, juegos
Have no place I can be since I found Serenity
But you can’t take the sky from me

		
______________________________________________ LLama Gratis a cualquier PC del Mundo. Llamadas a fijos y móviles desde 1 céntimo por minuto. http://es.voice.yahoo.com