Load lua file from scene error

I can run a lua script inside scene init function. it produces an error and exit program. How can i run a simple script with cocos2d-x. Thankyou

bool		GameLevelLayer::init()
{

	 int status, result, i;
    double sum;
    lua_State *L;


    L = luaL_newstate();

    luaL_openlibs(L); 

    status = luaL_loadfile(L, "script.lua");
    if (status) {

        fprintf(stderr, "Couldn't load file: %s\n", lua_tostring(L, -1));
        exit(1);
    }

There are some code which is about auto-bindings and manual-bindings in CCLuaEngine, so you should execute the function of LuaEngine to execute a cocos2d-x game with an entry lua script.

thankyou for replay. I gonna check it out