-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tcc: error: undefined symbol 'round' #4465
Comments
I believe this issue is Windows-specific. TCC on Win32 provides `include/math.h' but no actual implementation. It needs the lib to be provided, and in a suitable format (see below). (from
Not really an issue with the Nim compiler. |
Thank you ,I see. It's so pity that can't not use tcc reliablely on Windows. |
https://lists.nongnu.org/archive/html/tinycc-devel/2017-03/msg00015.html First, there's no "current development on github". The main tcc repo is the mob Second, 0.9.26 indeed had issues with the "t" constraint and math.h (taken from Your options are one of:
On Wednesday, March 15, 2017 9:48 AM, Charles Lohr address@hidden wrote: I've found only small bits and pieces of information about how to do this strewn across the internet. Hopefully this message will have enough keywords in it that others will find it... and hopefully someone on the list will be able to help. I've tried pulling some files from the current development github, to no avail. After downloading TinyCC 0.9.26, and compiling, I randomly get the following error:
Whenever I try to use fabsf(...) That aside, if I only make my program #include <math.h> I will run into a slew of : tcc: error: undefined symbol 'strtof' I can't seem to find any objects distributed with tcc that provide this functionality. What are we to do for the Windows port of tcc? No libm.dll, libm.a, libm.c, nothing? What is the recommended compile line for something that uses these features? Charles Tinycc-devel mailing list file: https://lists.nongnu.org/archive/html/tinycc-devel/2017-03/zip7zu0wmdBBt.zip |
When importing
strutils
, error occurred when compiling DEBUG exe with tcc version 0.9.26helloworld.nim
if using
-d:release
, then it is OK.The text was updated successfully, but these errors were encountered: