• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Linking troubles with Lua
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Linking troubles with Lua


  • Subject: Re: Linking troubles with Lua
  • From: Scott Thompson <email@hidden>
  • Date: Wed, 9 Apr 2008 18:01:00 -0500

Offhand, it looks like the liblua you have is not compatible with the standard C libraries that MacOS X is using. Can you rebuilt liblua from source? You might also get in touch with the Lua folks in their forums.

Scott

On Apr 9, 2008, at 5:44 PM, Aaron MacDonald <email@hidden> 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
_______________________________________________
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


References: 
 >Linking troubles with Lua (From: Aaron MacDonald <email@hidden>)

  • Prev by Date: Linking troubles with Lua
  • Next by Date: Re: Linking troubles with Lua
  • Previous by thread: Linking troubles with Lua
  • Next by thread: Re: Linking troubles with Lua
  • Index(es):
    • Date
    • Thread