Lua in Visual C++ 2008

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Jun 2009
Posts: 12
Reputation: chrishtones is an unknown quantity at this point 
Solved Threads: 1
chrishtones's Avatar
chrishtones chrishtones is offline Offline
Newbie Poster

Lua in Visual C++ 2008

 
0
  #1
32 Days Ago
So I am trying to set up Lua on Visual C++ 2008 and I keep getting this error:

error C3861: 'luaL_newstate': identifier not found

Here is an example of my code:

  1. #include <iostream>
  2.  
  3. extern "C"
  4. {
  5. #include "lua.h"
  6. }
  7.  
  8. using namespace std;
  9.  
  10. int main(int argc, char* argv[])
  11. {
  12. lua_State *lvm = lua_open();
  13. if ( lvm == NULL )
  14. return 0;
  15.  
  16. lua_close ( lvm );
  17.  
  18. return 0;
  19. }

Anybody got any ideas?
Reply With Quote Quick reply to this message  
Reply

Tags
c++, error, problem

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC