lua-users home
lua-l archive

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


On 10/10/2011, at 10:16 PM, steve donovan wrote:

> On Mon, Oct 10, 2011 at 11:00 AM, Oskar Forsslund
> <matrixsmurfen@googlemail.com> wrote:
>> If I rewrite the command in luatrace.profile.bat from
>> lua -e 'require("luatrace.profile").go()'
>> to
>> lua -e "require('luatrace.profile').go()"
>> everything works fine.
> 
> Yes, that's how it must be with Windows, where double-quote is always
> used for command-line arguments.

Changed.

On 10/10/2011, at 10:38 PM, Oskar Forsslund wrote:

> I get an error using the luatrace library from my code
> 
> In my script file scriptfuncs.lua I have luatrace = require"luatrace" at the top
> 
> In C++ I do the following:
> ...


Before you try this, have you just tried running it from Lua?

git pull, then cd to the lua directory of luatrace and

lua test/accumulate.lua
../sh/luatrace.profile

and see if that works.