RE: 4gl run time error "has already been defined -1351"
Posted in 1999
When 'catting' the files together make sure you use a > and not a >>
You could end up catting two or more copies of your 4go's together and this
would give you the same message i.e. 1351.
You want to make sure that you create a new 4gi and not append to an
existing version of it.
This might seem a little obvious but you never know. I've accidentally done
this a few times.
Regards
Rekaish
-----Original Message-----
From: Rudy Fernandes [mailto:rferdy@americasm01.nt.com]
Sent: 07 December 1999 14:13
To: informix-list@iiug.org
Subject: Re: 4gl run time error "has already been defined -1351"
You really need to locate the make file for these 4gls. That will give you
an understanding about which 4gos need to be catted together to create the
various 4gis which get called by the Menu application. Even better, you
could use the make file to create the 4gis.
Alternatively, you may find that the programming database was used
(syspgm.. something) to create 4gis. Check whether such a database exists
(using dbaccess). If so, you will need to use the "r4gl->Program" command
(I think! Its been a long time) to create your 4gis.
Rudy
Troy Frericks wrote:
> I am converting an old (1992) system from SCO unix and V4 of informix to
> Linux and V7.2 of informix. The user interface is also being converted
> to 4gl V6.0 from an old version of 4gl. I have compiled (to pcode) a
> set of files in a directory using the 4glpc command. I have assembled
> the resultant .4go's into a single file using 'cat' (per informix
> documentation) to create a .4gi. I then run the menuing system and
> select "invoicing", and get a bunch of errors like this...
>
> FORMS statement error number -1351
> The function (or report) "main" has already been defined. Function and
> report can not both have the same name.
>
> I have not a clue as to where to go. I just need a nudge in the right
> direction.
>
> Thanks!
> #