Click here to Skip to main content
15,886,654 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hey, I was following a tutorial on this site. It's called "Integrating Lua into C++", whether it's out-dated or the problem is on my end.

Integrating Lua into C++

Here's the errors I'm receiving when I'm compiling:

Errors

Also, here's the source. It contains two files of code:

Source

EDIT: I did the exact same thing in another IDE called: Code::Blocks using a Mingw compiler. The errors were allot more understandable for me, it says:

undefined reference to `lua_open'
undefined reference to `luaopen_io'
undefined reference to `luaL_loadfile'
undefined reference to `lua_pcall'
undefined reference to `lua_pushstring'
undefined reference to `lua_gettable'
undefined reference to `lua_pcall'
undefined reference to `lua_close'


I've recently asked the author of the article for help, that's still pending.
Posted
Updated 7-Jan-13 14:35pm
v3
Comments
chandanadhikari 7-Jan-13 22:36pm    
hi,
just making a guess--since the functions are being used without being first declared (or defined) maybe you are missing some header file which needs to be included. Just check if your headers are in place .

1 solution

You would better ask the author of this article. Load the article page (follow you own link you provided above), locate the section "Comments and Discussions" and click "Add a Comment or Question" to ask author your questions. The author will receive notification on your post and get a chance to reply. Make sure you provide sufficient information of how to reproduce the problem.

Good luck,
—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900