So, is that identifier in the included files? (maybe it's "lua_state" or "Lua_state" or so).
Also, do you get an error during compiling or during linking? In the latter case, did you supply a library to link against?
I did not supply a library to link since I'm just using the source of Lua.
And I checked both versions, none of them work.
In the build output I get these errors at the same line :
1>c:\users\alex\desktop\untitledcppgame\untitledcppgame\luamanager.h(21): error C2143: syntax error: missing ';' before '*'
1>c:\users\alex\desktop\untitledcppgame\untitledcppgame\luamanager.h(21): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>c:\users\alex\desktop\untitledcppgame\untitledcppgame\luamanager.h(21): error C2238: unexpected token(s) preceding ';'
And lua_State should be in there somewhere.
It should work. That struct is defined and typedefed in lua_State. Are your .h files okay?
Unsure what you mean, if you mean the Lua source files, I have replaced them several times just in case I might have deleted something or modified them by mistake.