|
From: | Brad Elliott |
Subject: | Re: [Tinycc-devel] TCC and round() |
Date: | Tue, 28 Jun 2016 17:00:09 +0000 |
Hmm, I appear to be able to get it to work by modifying lib/msvcrt.def to link against msvcr120.dll instead of msvcr.dll and manually adding the definition for round: LIBRARY msvcr120.dll EXPORTS … round Is this a safe thing to do? Brad From: Brad Elliott
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?
Brad Elliott |
[Prev in Thread] | Current Thread | [Next in Thread] |