tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] sinf/sin problems


From: Aharon Robbins
Subject: Re: [Tinycc-devel] sinf/sin problems
Date: Wed, 24 Dec 2014 08:34:53 +0200
User-agent: Heirloom mailx 12.5 6/20/10

The problem is apparently that sinf isn't declared in Microsoft's <math.h>
header file; try searching MSDN to see where it is declared.

What's happening is that C treats undeclared functions as being
implicitly declared to return int (4 bytes), which explains why
you're getting bad values.  If you explicitly declare the function:

        extern double sinf(double);

things should start working.

In short, tcc is behaving properly; the headers / library aren't
matching your expectations.

HTH,

Arnold



reply via email to

[Prev in Thread] Current Thread [Next in Thread]