Re: Linking troubles with Lua
Re: Linking troubles with Lua
- Subject: Re: Linking troubles with Lua
- From: "Wesley Smith" <email@hidden>
- Date: Wed, 9 Apr 2008 19:47:23 -0600
It's really easy to compile Lua yourself. Just download the source
and make macosx (or something really close to that) will work. It
will save you your current troubles.
wes
On Wed, Apr 9, 2008 at 5:10 PM, Rick Altherr <email@hidden> wrote:
>
>
> On Apr 9, 2008, at 3:44 PM, Aaron MacDonald wrote:
>
> >
> >
> >
> > Hello,
> >
> > I'm attempting to use Lua in my application, but I keep getting linker
> errors.
> >
> > I have the file liblua.a in /usr/local/lib and I have all of the lua
> headers in /usr/local/include.
> > I have liblua.a showing up in the Frameworks folder of my project.
> > I have "/usr/local/include" in Header Search Paths and User Header Search
> Paths in my project settings.
> > I have "/usr/local/lib" in Library Search Paths in my project settings.
> >
> > I have one source file where I include "lua.hpp" and have this line:
> > lua_State *L = lua_open();
> >
> > However, I get these errors:
> >
> > Undefined symbols:
> > "_strtod$UNIX2003", referenced from:
> > _luaO_str2d in liblua.a(lobject.o)
> > "_strerror$UNIX2003", referenced from:
> > _errfile in liblua.a(lauxlib.o)
> > ld: symbol(s) not found
> >
> > Thank you for your help,
> >
> > Aaron J. M.
> > _______________________________________________
> > Do not post admin requests to the list. They will be ignored.
> > Xcode-users mailing list (email@hidden)
> > Help/Unsubscribe/Update your Subscription:
> >
> > This email sent to email@hidden
> >
>
>
> If I had to hazard a guess, liblua.a was built on a Leopard system (the
> $UNIX2003 suffix to symbol names is a dead give away) and you are trying to
> link either on a Tiger system or against the 10.4 SDK.
>
> --
> Rick Altherr
> Architecture and Performance Group
> email@hidden
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Xcode-users mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden