Forums » MacOS X

Help learning Lua

«123
Jun 28, 2006 raybondo link
you should be able to use table.getn(tablename) but that assumes you only ever did table.insert() or table.remove().

VO doesn't use lua 5.1 (yet) so I don't know how the # operator works.
Jul 23, 2006 Lancet link
OMG.... that's one crazy thread.... BTW, the password thing. booting from the install CD will let you reset passwords.. way better than that " way too much 'nix stuff just to reset a password nonsense".

stay a way from netinfo too.... no need.
Sep 28, 2006 Person link
Great. This is WIERD. So I'm trying to add a GUI to my Lua application through Cocoa and C, and I'm trying to import all the lua-interaction library thingies from C, but one of them won't work, and I did exactly as the book told me.

Project:


Error:


-Calder

[EDIT] Really sorry about that. My bad. Hope this works now.
Sep 28, 2006 ananzi link
dude, 10.0.1.2 is on your local network, none of us can get to it. and thus to your images.
Sep 28, 2006 Person link
*editted*
Oct 02, 2006 ananzi link
ill give you a hint, it cant find some lua/c header, luaxlib.h. you have to either tell the compiler to look for it, or maybe its not installed properly in the first place, or maybe it was never installed at all.

whoever wrote the book maybe left out a step, or was on a different setup, using a different version of something or other, or who knows what. or maybe you skipped a part.

i could go and try to download/install lua / c headers and etc etc etc but im too tired.

Oct 02, 2006 N00by Calder link
Thanks ananzi, but I don't know how to make the compiler look for it... I have it installed, I checked for it and everything. I included it in my project in two framework files. I told the program exactly where it is, but... still not working.

-Calder
Oct 04, 2006 ananzi link
its often called an 'include' , 'include directory', 'includes', or other fancy big words.
if it was designed right in the first place it would be where the compiler expects it but whatever.

how does your book compile it? does your book use xcode or does it use makefiles or what?