Hello i am using Barnski's Lua Plugin to get LUA working in my dark gdk project. I have found example code but i canot seem to get it working. Here is my code
#include "lua_plugin.h"
#pragma comment (lib,"Barnski'sLuaPlugin_debug.lib")
int num;
lua::make();
lua::load_file("filename.lua"); //load the config file
num=lua::get_int("alter");
Here are my errors
1>.\Main.cpp(85) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>.\Main.cpp(85) : error C2556: 'int make(void)' : overloaded function differs only by return type from 'void lua::make(void)'
1> c:\users\marsh.compy-286\documents\eclipse ++\client\dark gdk - 2d game2\lua_plugin.h(51) : see declaration of 'lua::make'
1>.\Main.cpp(85) : error C2371: 'lua::make' : redefinition; different basic types
1> c:\users\marsh.compy-286\documents\eclipse ++\client\dark gdk - 2d game2\lua_plugin.h(51) : see declaration of 'lua::make'
1>.\Main.cpp(86) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>.\Main.cpp(86) : error C2365: 'lua::load_file' : redefinition; previous definition was 'function'
1> c:\users\marsh.compy-286\documents\eclipse ++\client\dark gdk - 2d game2\lua_plugin.h(93) : see declaration of 'lua::load_file'
i can get it to work by going
void make();
char * load_file("filename.lua");
But then i run into trouble later and i cant get my num=lua::get_int("alter"); working. I have included it in my additional dependencies. Any ideas on what i may be doing wrong? Thanks for any help i recieve.