Добрый день!
Пожалуйста, помогите разобраться . Пытаюсь откомпилировать десяток строк в Dev-C++ :
#include <cstdlib>
#include <iostream>
extern "C"{
#include "lua.h"
#include "lauxlib.h"
}
using namespace std;
int main(int argc, char *argv[])
{
system("PAUSE");
return EXIT_SUCCESS;
}
выдает ошибки :
5 D:\_Game\_LUA_General\_Lua_Ci\Exper5\main.cpp In file included from main.cpp
46 C:\Dev-Cpp\include\lauxlib.h ISO C++ forbids declaration of `lua_Unsigned' with no type
46 C:\Dev-Cpp\include\lauxlib.h [Warning] `lua_Unsigned' initialized and declared `extern'
46 C:\Dev-Cpp\include\lauxlib.h `luaL_checkunsigned' was not declared in this scope
46 C:\Dev-Cpp\include\lauxlib.h expected `,' or `;' before '(' token
47 C:\Dev-Cpp\include\lauxlib.h ISO C++ forbids declaration of `lua_Unsigned' with no type
47 C:\Dev-Cpp\include\lauxlib.h [Warning] `lua_Unsigned' initialized and declared `extern'
47 C:\Dev-Cpp\include\lauxlib.h redefinition of `int lua_Unsigned'
46 C:\Dev-Cpp\include\lauxlib.h `int lua_Unsigned' previously defined here
47 C:\Dev-Cpp\include\lauxlib.h `luaL_optunsigned' was not declared in this scope
47 C:\Dev-Cpp\include\lauxlib.h expected `,' or `;' before '(' token
D:\_Game\_LUA_General\_Lua_Ci\Exper5\Makefile.win [Build Error] [main.o] Error 1
Я еще новичок в этом , трудно разобраться
С уважением , Владимир