How to use Lua and C/C++ together.

A forum to store posts deemed exceptionally wise and useful
Post Reply
zester
Competition winner
Posts: 52
Joined: Sun May 01, 2011 6:50 am

How to use Lua and C/C++ together.

Post by zester »

For now just go check out my link, I cover a bunch of different usage scenarios.
After I clean all that code up ill post it here or in the Irrlicht wiki.
http://code.google.com/p/zester/wiki/Lua_C
REDDemon
Developer
Posts: 1044
Joined: Tue Aug 31, 2010 8:06 pm
Location: Genova (Italy)

Post by REDDemon »

Just wanted to tell that if you have problem compiling LUA you need only to include all the file in the "src" directory and compile as static lib. (at least it compile correctly and a simple example works)
Junior Irrlicht Developer.
Real value in social networks is not about "increasing" number of followers, but about getting in touch with Amazing people.
- by Me
Dareltibus
Posts: 115
Joined: Mon May 17, 2010 7:42 am

Post by Dareltibus »

You exampe is only for C only. I know that C/C++ is almost equivalent in certain cases, but to most inexperienced people that example can be ambiguos.

Here is a good tutorial that explain how to make a C++/Lua integration. this tutorials shows also how to use Objects with lua. this is much more OOP than a simple C/Lua tutorial ;-)

http://csl.sublevel3.org/lua/

the most important thing is that this tutorials is not over complicated like luabind. So it can be very usefull for all developers.
Post Reply