[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem using external functions with the same name as those in Gambas


Le 22/08/2025 à 15:25, Benoît Minisini a écrit :
Le 14/08/2025 à 15:57, vuott@xxxxxxxxxxxx a écrit :
Hello,

I noticed that, for example, this statement:

     Library "libc:6"

     Private Extern kill_C(pid AS Integer, sig AS Integer) As Integer Exec "kill"

gives the error:  "Unexpected Exec"

Itdidn'tgiveanerrorbefore(Idon'tknowwhenthisstartedhappening).

Infact,nowONLYthisstatementisaccepted:

     Private Extern kill_C(pid AS Integer, sig AS Integer) As Integer In "libc:6" Exec "kill"

Is this a deliberate change in Gambas ?

Regards
vuott


No, this is a compiler bug.


It should be fixed by commit https://gitlab.com/gambas/gambas/-/commit/fbab4c398557d55de2ce77606bac1fe37bc24741.

Regards,

--
Benoît Minisini.