lua-users home
lua-l archive

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


I'm trying to call lua_dofile from C++, using Lua 4.0a and CodeWarrior 5 on Mac, but if I try the old form (no lua_State), I get a link error, and if I try the new form, CodeWarrior seems to tell me that two parameters are too much.

The FAQ <http://csg.uwaterloo.ca/~lhf/lua/faq.html> suggests using ...

   extern "C" {
   #include "lua.h"
   }

... which have worked for me earlier. Is that still supposed to be all I need?

/Jon
---------------------------------------------------------------------------
Jon Kleiser / ADB ekstern / USIT / University of Oslo / Norway
Mail: Jon.Kleiser@usit.uio.no / Tel: +47-22 85 28 04 / Fax: +47-22 85 29 70
---------------------------------------------------------------------------