tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] TCC and round()


From: Brad Elliott
Subject: [Tinycc-devel] TCC and round()
Date: Tue, 28 Jun 2016 16:18:50 +0000

Hi everyone,

 

Has anyone had success getting round() to work in TCC without implementing my own? Version 0.9.26 looks like it added support for C99 and I can see the prototype in math.h but I can’t compile it:

 

     tcc: error: undefined symbol 'round'

 

This is the simple example I was using:

 

    #include <stdio.h>

    #include <math.h>

    #include <stdlib.h>

 

    int main(void)

    {

        printf("%f\n", round(0.1));

        return EXIT_SUCCESS;

    }

 

I don’t see any options to specifically enable C99 like the --std=c99 in GCC.

 

Any ideas?


Thanks,

 

Brad Elliott


reply via email to

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