John Tytgat <[email protected]> wrote:

> In message <[email protected]>
>           Jan-Jaap van der Geer <[email protected]> wrote:

> > As Vala likes to generate a _main function when compiling a
> > vala program to a c program, this is a bit impractical. Is
> > there an easy workaround?

> > I tried checking the Vala compiler, but it was not immediately
> > obvious how this name got generated. It might be feasable to go
> > that way, but I'd like to find out if there is an alternative
> > solution.

> _main is what we have in UnixLib wrapping the user supplied
> main() and not as is replaceble. As far as I remember, all
> identifiers starting with an underscore are reserved for user
> code so a bit questionable that Vala uses this.

I was afraid for something like that.

> I don't have a workaround other than patch the Vala sources to
> use something else, at least something reasonably unique to Vala
> like e.g. _vala_main().

OK. I will take it up with the developers for Vala.

Thanks,
Jan-Jaap

_______________________________________________
GCCSDK mailing list [email protected]
Bugzilla: http://www.riscos.info/bugzilla/index.cgi
List Info: http://www.riscos.info/mailman/listinfo/gcc
Main Page: http://www.riscos.info/index.php/GCCSDK

Reply via email to