lua-users home
lua-l archive

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


> >  * gcc -Wall -shared -fPIC -o time_now.so -llua time_now.c
> >  
> 
> I've lost track. What's the "official" way to build Lua plugins on OS X?

My thoughts exactly.

I've used
	gcc -Wall -bundle -undefined dynamic_lookup -o time_now.so time_now.c
and it works fine.

I guess that -llua may be getting a different version of the Lua library.
In any case, you're not supposed to link the Lua library with the .so.
(I know that -llua might just tell the .so that there is a Lua library,
but I never used -llua for .so.)