Compile problem

"Shay Harding" <sharding-YCNXYxaMkU/[email protected]> Fri, 7 Feb 2003 08:21:01 -0700
Newsgroups gmane.comp.lang.moto.devel
Organization CCBill
Message-ID <003001c2cebc$863307e0$7500000a@ccbill22ms668m>
Ok, I actually got around to writing my first Moto program :) I was
trying to compile it to a DSO for Apache but kept running into an error:


iptrack_0.c: In function '_IPManager_IPManager__';
iptrack_0.c:121: number of arguments doesn't match prototype
cc1: prototype declaration
iptrack.moto: At top level:
iptrack.moto:144: redefinition of '_IPManager_IPManager__'
iptrack_0.c:121 '_IPManager_IPManager__' previously defined here
iptrack.moto: In function 'exec_iptrack_0':
iptrack.moto:71: too few arguments to function 'IPManager_IPManager__'
iptrack.moto:105:20: warning: multi-line string literals are depracated
apxs:Break: Command failed with rc=1
*** error: compilation error


Now, I looked at the generated C source and indeed the constructor
prototype does match the definition, however, there is one line:


/* BEGIN GENERATED FUNCTION PROTOTYPES */
static struct _IPManager* _IPManager_IPManager__(IPManager* this);


which matches no defined function since "_IPManager_IPManager__" is
defined as:

static IPManager* _IPManager_IPManager__(){}



It looks like there are conflicting prototypes for the constructor
function.


Shay


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003