[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: coroutine & busy wait?
- From: "Vijay Aswadhati" <wyseman@...>
- Date: Sat, 5 Feb 2005 14:43:44 -0800
> -----Original Message-----
> From: lua-bounces@bazar2.conectiva.com.br [mailto:lua-
> bounces@bazar2.conectiva.com.br] On Behalf Of PA
> Sent: Saturday, February 05, 2005 4:24 AM
> To: Lua list
> Subject: Re: coroutine & busy wait?
>
> I tried to follow Luiz's instruction at "Installing my Lua Libraries":
>
> http://www.tecgraf.puc-rio.br/~lhf/ftp/lua/install.html
>
> ... but without much success so far:
>
> % make
> cc -I/usr/local/include -ansi -pedantic -Wall -O2 -c -o lalarm.o
> lalarm.c
> cc -o lalarm.so -shared lalarm.o
> cc: unrecognized option `-shared'
> ld: Undefined symbols:
> _main
> _lua_call
> _lua_error
> _lua_gethook
> _lua_gethookmask
> _lua_gettable
> _lua_gettop
> _lua_pushcclosure
> _lua_pushlstring
> _lua_pushnil
> _lua_pushnumber
> _lua_pushvalue
> _lua_setfield
> _lua_sethook
> _lua_settable
> _lua_tonumber
> _lua_type
> make: *** [lalarm.so] Error 1
>
> Does anyone has a make file for Mac OS X?
>
> For the record, I'm using lua-5.1-work4 on Mac OS X 10.3.7.
I am bit rusty with *nix these days as I have been working on WinXP. FWIW,
these errors indicate that the linker is unable to find the Lua library.
Check the manual for a "-L" option to tell the linker where to look for
libraries and "-l" option to specify the library for static linking (as in a
*lib.a archive, I think).
Cheers
Vijay Aswadhati