[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: problems with tolua
- From: "Eric Ries" <eries@...>
- Date: Tue, 24 Apr 2001 10:48:30 -0400
Have you tried removing the (void) from that line, like this:
void draw();
That seems to work for me...
Eric
> -----Original Message-----
> From: owner-lua-l@tecgraf.puc-rio.br
> [mailto:owner-lua-l@tecgraf.puc-rio.br]On Behalf Of Nahuel Greco
> Sent: Tuesday, April 24, 2001 10:32 AM
> To: Multiple recipients of list
> Subject: problems with tolua
>
>
> 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. |
> '------------------------------------------------------------'