[Gambas-user] cannot find symbol sinh in libc
Demosthenes Koptsis
demosthenesk at gmail.com
Mon Jun 11 12:19:43 CEST 2018
sinh is documented in libc manual but it is function of libm
On 06/11/2018 12:17 PM, vuott at tiscali.it wrote:
> > ...but it is not there as you say.
>
> what do you mean?
>
>
> vuott
>
>
>
>
>
> Il 11.06.2018 10:04 Demosthenes Koptsis ha scritto:
>
>> Thanks Tobias!
>>
>> Anyway sinh is documented in glibc manual also, but it is not there as
>> you say.
>>
>> https://www.gnu.org/software/libc/manual/html_node/Hyperbolic-Functions.html#Hyperbolic-FunctionsOn 06/11/2018 11:07 AM, Tobias Boege wrote:
>>> On Mon, 11 Jun 2018, Demosthenes Koptsis wrote:
>>>> hello, according
>>>> https://www.gnu.org/software/libc/manual/html_node/Hyperbolic-Functions.html#Hyperbolic-Functions
>>>> i have this external function 'double sinh (double x) Public Extern
>>>> sinh_C(x As Float) As Float Exec "sinh" but i get the error "cannot
>>>> find symbol sinh in libc" why?
>>> Because it is in libm: Extern my_sinh(f As Float) As Float In
>>> "libm:6" Exec "sinh" Print Sinh(20) Print my_sinh(20)
>>>> 242582597.704895 242582597.704895
>>> At least on my system, the manpage of sinh tells you to "Link with
>>> -lm." Regards, Tobi
>> ----[ Gambas mailing-list is hosted byhttps://www.hostsharing.net ]----
>
>
>
> Con Mobile Open 6 GB hai 6 Giga, 600 minuti e 300 SMS per il tuo
> smartphone a 9€ al mese per sempre. Passa ora a Tiscali Mobile, il
> nostro mese è vero! http://tisca.li/Open6GB0318
>
>
>
> ----[ Gambas mailing-list is hosted by https://www.hostsharing.net ]----
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180611/6c35f1d8/attachment.html>
More information about the User
mailing list