Skip to content

undefined symbol '__fpclassify' on Windows #59

@kbkpbot

Description

@kbkpbot

As vlang/v#24272 , it need to fix math.h in tccbin.

I checked openlibm, there is no function's name __fpclassify(), but __fpclassifyd() for double.

So it need to patch include\math.h, replace __fpclassify with __fpclassifyd.

openlibm$ find . -type f | xargs grep __fpclassify
./include/openlibm_math.h:    ((sizeof (x) == sizeof (float)) ? __fpclassifyf(x) \
./include/openlibm_math.h:    : (sizeof (x) == sizeof (double)) ? __fpclassifyd(x) \
./include/openlibm_math.h:    : __fpclassifyl(x))
./include/openlibm_math.h:OLM_DLLEXPORT int     __fpclassifyd(double) __pure2;
./include/openlibm_math.h:OLM_DLLEXPORT int     __fpclassifyf(float) __pure2;
./include/openlibm_math.h:OLM_DLLEXPORT int     __fpclassifyl(long double) __pure2;
./src/s_fpclassify.c:__fpclassifyd(double d)
./src/s_fpclassify.c:__fpclassifyf(float f)
./src/s_fpclassify.c:__fpclassifyl(long double e)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions