lua-users home
lua-l archive

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


I finally got it working.  Not sure why it wasn't working before as I
had tried making C files first and them compiling them to .o files.
Either way, it works now and it awesome.  Back to implementing actual
features...

https://github.com/creationix/luvit/blob/master/Makefile

On Tue, Oct 4, 2011 at 10:36 AM, Mike Pall <mikelu-1110@mike.de> wrote:
> Tim Caswell wrote:
>> https://github.com/creationix/luvit/blob/857d7a03de65a95045a9de43be17b46462494304/Makefile#L38
>
> You're generating *.h files for the Lua files. That's not what you
> want. These are meant for the case where you don't want the
> symbols exported (but then you'll need to load/run them yourself).
>
> You'll want to generate *.c files instead. These export their
> symbols, which is needed for require().
>
> [Also ... *cough* ... you may want to consider rewriting your
> Makefiles. Compiling and linking in one step is generally not a
> good idea. And you're not even using optimization options ...]
>
> --Mike
>
>