Lua causing compiler errors

Posts: 17
Joined: 2007.02
Post: #1
I've been trying to embed Lua into my game. I heard it was easy to embed and program so I decided to use it over the other scripting languages. I downloaded a pre-built framework, put it into my app, included the nessesary headers, declared my lua state, and used lua_open() to get everything started. Then I decided to compile to make sure that everything is working, I get:

warning in /Users/Home/Library/Frameworks/Lua.framework/Lua, file is not of required architecture

Error: "lua_open()", referenced from:
LuaScript::LuaScript() in script.o
symbol(s) not found
collect2: Id returned 1 exit status

Here is my code:

#include <Lua/Lua.h>
#include <Lua/lualib.h>
#include <Lua/lauxlib.h>

class luaScript
    // the lua state
    lua_State* whLuaState;

#include "script.h"

    whLuaState = lua_open();

I searched google and no one else seems to have the same problem.

I got the framework from:
Quote this message in a reply
Post Reply 

Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Python Compiler wyrmmage 3 7,083 Jul 30, 2009 10:14 PM
Last Post: wyrmmage