[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Using Lua in a C(++) program
- From: Johannes Hager <hager.j@...>
- Date: Thu, 12 Jun 2003 11:19:17 +0200
lua_open() had not fails, but after i tried to include lauxlib.h it fails even
if i doesnt include lauxlib.h. I think thats very strange and their helps me
no doku because their stuff runs.
> I will look at this stuff. But since i begann to try implement lua in a c++
> program their are only problemes. For example after i includede
> "lauxlib.h", "lua_open()" works no more, if you will not going a bit mad
> with the time
>
> :-)
>
> Should work fine. It certainly works in my app. Do you mean to say lua_open
> fails if the only difference between two files is whether or not
> "lauxlib.h" is included? Presuming the answer is "No", why don't you step
> into lua_open and see why it fails. Lua code base overall is not that
> complicated and fairly well written. Should be a breeze to troubleshoot
> simple problems.
>
> Alex
>
> > Johannes Hager wrote:
> > > Hi,
> > >
> > > And there i have the next problem. Now runs lua. But if i try to do
> > > lua_dostring(...) the compiler doesnt know ist. How can it be that
> > > open_lua() and close lua() works but lua_dostring not? *frustation*
> >
> > In Lua 5.0, lua_dostring has been moved to lauxlib.h.
> >
> > Do this:
> >
> > extern "C" {
> > #include "lua.h"
> > #include "lauxlib.h"
> > #include "lualib.h"
> > }
> >
> > Relax man, haste makes waste. You are systematically getting stuck on
> > each one of the FAQs for this mailing list. Instead, you should check
> > out the wiki, and the web interface to the mailing list archive.
> > There's lots of good stuff there.
> >
> > http://lua-users.org/
> >
> > http://lua-users.org/wiki/LuaDirectory