LADSoft / OrangeC

OrangeC Compiler And Tool Chain
http://ladsoft.tripod.com/orange_c_compiler.html
Other
301 stars 39 forks source link

Absent functions in math library #1055

Open alvoskov opened 2 weeks ago

alvoskov commented 2 weeks ago

The mathematical library doesn't contain such functions as erf or lgamma (they are required by C99 standard). E.g. such program doesn't compile. The functions prototypes are present in the header files but are not implemented.

#include "stdio.h"
#include "math.h"

int main()
{
    printf("%g\n", exp(1.0));
    printf("%g\n", exp(lgamma(4.0)));
} 

occ /9 a.c

Error: Undefined External 'lgamma' in module a.c

LADSoft commented 11 hours ago

yeah i was lazy about lgamma.... the last math implementation I got didn't have it and I never looked for a replacement. Will see what I can do....