lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Hi, im trying to use tolua.. i have the following file (from the tolua
documentation)

bash-2.04$ cat ./nahuel/shape.pkg  
#define FALSE 0
#define TRUE 1
class Shape
{
  void draw (void);
  void draw (double red, double green, double blue);
  int isSelected (void);
};

class Line : public Shape
{
 Line (double x1, double y1, double x2, double y2);
 ~Line (void);
};


--- and i have these lua and tolua versions:

bash-2.04$ lua -v
Lua 4.0  Copyright (C) 1994-2000 TeCGraf, PUC-Rio
bash-2.04$ ./bin/tolua -v
tolua 4.0a (written by W. Celes)
bash-2.04$ 


--- now.. i try to make a .c from the .pkg...

bash-2.04$ ./bin/tolua ./nahuel/shape.pkg 

** tolua: parse error.

Code being processed:
  void draw (void);

bash-2.04$ 

-------

What im doing wrong??

_------------------------------------------------------------.
| Nahuel Greco                 Web Development - Open Source |
| http://www.codelarvs.com.ar  Game Programming - Research   |
| Freelance coding / sysadmin  Networking. The answer is 42. |
'------------------------------------------------------------'