Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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 7-Jan-13 13:38pm
Edited 7-Jan-13 14:35pm
v3
Comments
chandanadhikari at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  

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

  Print Answers RSS
0 OriginalGriff 205
1 Sergey Alexandrovich Kryukov 185
2 jlopez788 144
3 Rob Philpott 100
4 Prakriti Goyal 97
0 OriginalGriff 6,837
1 Sergey Alexandrovich Kryukov 5,589
2 Maciej Los 3,479
3 Peter Leow 3,323
4 DamithSL 2,505


Advertise | Privacy | Mobile
Web03 | 2.8.140721.1 | Last Updated 7 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100