Re: i_rowid_s, m_rowid_s, s_rowid_s, r_rowid_s, and w_rowid_s functions

Mike Aubury <[email protected]> Mon, 7 Jun 2021 12:46:07 +0100
Newsgroups gmane.comp.lang.4gl.aubit.general
Message-ID <CAGAq4WEGnZMWfGR4-kdhKFd4vZm=aUy26R9DSd1f3LVoLox9kw@mail.gmail.com>
Are you compiling aubit4gl from source, or using a binary  ?

On Mon, 7 Jun 2021 at 02:45, Iwan AB <[email protected]> wrote:

> Hi,
>
> I use functions i_rowid_s, m_rowid_s, r_rowid_s, and s_rowid_s for
> maintenance table program. Compiling a program (let's say p_rowid.4gl)
> containing all those functions produce error that say that those functions
> are aubit's builtin functions.
>
> FUNCTION i_rowid_s()
> |_________________^
> | Error at line 11, character 19
> | You can't use this name - this is the name of a builtin Aubit4GL
> function ())
>     DEFINE  retval INTEGER
>
> CODE
>     if((rowptr = (long *)malloc(sizeof(long))) != NULL) retval = 0;
>     else
>         retval = 1;
> ENDCODE
>
>     RETURN retval
>
> END FUNCTION
>
> I've checked the aubit's source program, those functions are in module
> helper.c
>
> But when compiling a program to executable (.4ae) without linking to 4gl
> module that contain those functions produce error
>
> undefined reference to `aclfgl_i_rowid_s' and so on.
>
> I could simply rename the functions by adding prefix such as fgl_ like
> fgl_i_rowid_s, but sadly it means that I have to rename all those functions
> in all of my maintenance table programs too (there are hundreds of them).
>
> Regards,
>
> Iwan
>
>
>
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virus-free.
> www.avast.com
> <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
> <#m_-781653044783081649_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
> _______________________________________________
> Aubit4gl-discuss mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss
>

_______________________________________________
Aubit4gl-discuss mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/aubit4gl-discuss