Я начинаю с Луа. У меня очень простой проект, но я не могу его запустить. Я получаю ту же ошибку: фатальная ошибка LNK1107: файл поврежден или поврежден: невозможно прочитать при 0x2C3C файл: lua.h строка: 1
помощь будет принята с благодарностью
заранее спасибо
код C ++
#include <iostream>
extern "C"
{
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
#include "luaconf.h"
}
int main()
{
int s=0;
lua_State *L = lua_open();
// load the libs
luaL_openlibs(L);
//run a Lua scrip here
luaL_dofile(L,"foo.lua");
printf("\nI am done with Lua in C++.\n");
lua_close(L);
return 0;
}
код lua
io.write("Please enter your name: ")
name = io.read() -- read input from user
print ("Hi " .. name .. ", enjoy hacking with Lua");