Embedding Lua in Visual C++ 2008
Moderator: PC Supremacists
Re: Embedding Lua in Visual C++ 2008
i have the .lib files now but also a dll not a static linked library
Personal Youtube: http://www.youtube.com/user/xXShadowAsasNXx
Prelimse Studios Youtube: http://www.youtube.com/user/PrelimseStudios
Prelimse Studios Website: http://www.prelimsestudios.com/
Prelimse Studios Youtube: http://www.youtube.com/user/PrelimseStudios
Prelimse Studios Website: http://www.prelimsestudios.com/
Re: Embedding Lua in Visual C++ 2008
You know what? I'm going to clear my computer of anything that has to do with lua and start all over again... Now if someone could write a short and sweet guide on how they installed it, or show me where they learned to, that would be great. For now I am going to download Lua 5.1.4 source code.
Personal Youtube: http://www.youtube.com/user/xXShadowAsasNXx
Prelimse Studios Youtube: http://www.youtube.com/user/PrelimseStudios
Prelimse Studios Website: http://www.prelimsestudios.com/
Prelimse Studios Youtube: http://www.youtube.com/user/PrelimseStudios
Prelimse Studios Website: http://www.prelimsestudios.com/
Re: Embedding Lua in Visual C++ 2008
did you just ask a rhetorical question?Cole S. wrote:You know what? I'm going to clear my computer of anything that has to do with lua and start all over again... Now if someone could write a short and sweet guide on how they installed it, or show me where they learned to, that would be great. For now I am going to download Lua 5.1.4 source code.
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
Dad, "Yea well I have a fan belt in street fighting"
Re: Embedding Lua in Visual C++ 2008
Lol, I had to look up the definition for rhetorical (i'm 13) but yeah i kind of am!
Personal Youtube: http://www.youtube.com/user/xXShadowAsasNXx
Prelimse Studios Youtube: http://www.youtube.com/user/PrelimseStudios
Prelimse Studios Website: http://www.prelimsestudios.com/
Prelimse Studios Youtube: http://www.youtube.com/user/PrelimseStudios
Prelimse Studios Website: http://www.prelimsestudios.com/
- cypher1554R
- Chaos Rift Demigod
- Posts: 1124
- Joined: Sun Jun 22, 2008 5:06 pm
Re: Embedding Lua in Visual C++ 2008
Really? That could have been your problem. If you intend to just use Lua, then you should get the bin package.Cole S. wrote:For now I am going to download Lua 5.1.4 source code.
Re: Embedding Lua in Visual C++ 2008
can i redistribute the bin package?
Personal Youtube: http://www.youtube.com/user/xXShadowAsasNXx
Prelimse Studios Youtube: http://www.youtube.com/user/PrelimseStudios
Prelimse Studios Website: http://www.prelimsestudios.com/
Prelimse Studios Youtube: http://www.youtube.com/user/PrelimseStudios
Prelimse Studios Website: http://www.prelimsestudios.com/
Re: Embedding Lua in Visual C++ 2008
i downloaded a binary but now when i try to run a sample script i get a blank line in the exe, here is the code:
#include <iostream>
using namespace std;
extern "C" {
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
}
int main()
{
lua_State *L = lua_open();
// load the libs
luaL_openlibs(L);
//run a Lua script here
luaL_dofile(L,"hello.lua");
lua_close(L);
return 0;
}
#include <iostream>
using namespace std;
extern "C" {
#include "lua.h"
#include "lualib.h"
#include "lauxlib.h"
}
int main()
{
lua_State *L = lua_open();
// load the libs
luaL_openlibs(L);
//run a Lua script here
luaL_dofile(L,"hello.lua");
lua_close(L);
return 0;
}
Personal Youtube: http://www.youtube.com/user/xXShadowAsasNXx
Prelimse Studios Youtube: http://www.youtube.com/user/PrelimseStudios
Prelimse Studios Website: http://www.prelimsestudios.com/
Prelimse Studios Youtube: http://www.youtube.com/user/PrelimseStudios
Prelimse Studios Website: http://www.prelimsestudios.com/
Re: Embedding Lua in Visual C++ 2008
i seriously dont know why this is even a thread.
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
Dad, "Yea well I have a fan belt in street fighting"
- MarauderIIC
- Respected Programmer
- Posts: 3406
- Joined: Sat Jul 10, 2004 3:05 pm
- Location: Maryland, USA
Re: Embedding Lua in Visual C++ 2008
Cole, use the [code] and [/code] tags, would you? As for lua, it's not something I can help you with, besides, um, does your .lua file that you do there, does it actually, yknow, print?
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.
- Falco Girgis
- Elysian Shadows Team
- Posts: 10294
- Joined: Thu May 20, 2004 2:04 pm
- Current Project: Elysian Shadows
- Favorite Gaming Platforms: Dreamcast, SNES, NES
- Programming Language of Choice: C/++
- Location: Studio Vorbis, AL
- Contact:
Re: Embedding Lua in Visual C++ 2008
We can't help you if we don't have the source of the lua test file. For all we know, it's doing its thang.
Re: Embedding Lua in Visual C++ 2008
Thx for the help u guys it's working now.
Personal Youtube: http://www.youtube.com/user/xXShadowAsasNXx
Prelimse Studios Youtube: http://www.youtube.com/user/PrelimseStudios
Prelimse Studios Website: http://www.prelimsestudios.com/
Prelimse Studios Youtube: http://www.youtube.com/user/PrelimseStudios
Prelimse Studios Website: http://www.prelimsestudios.com/
- MarauderIIC
- Respected Programmer
- Posts: 3406
- Joined: Sat Jul 10, 2004 3:05 pm
- Location: Maryland, USA
Re: Embedding Lua in Visual C++ 2008
Glad you got it working.
I realized the moment I fell into the fissure that the book would not be destroyed as I had planned.