-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* fix #16326 * removing comments
- Loading branch information
1 parent
cd592ed
commit 7806ec5
Showing
1 changed file
with
16 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7806ec5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Araq , I was testing to build Nim from TCC using this:
koch boot -d:release --cc:tcc
But I get this error message:
D:\Nim\lib\system\io.nim(119, 12) Error: 'c_ftell' should be: 'cFtell'
The error also happens if you try to compile the Nim compiler directly with
D:\Nim\compiler>nim.exe c -d:release --cc:tcc nim.nim
After researching, I noticed that this error happens with TCC, GCC, CLANG, VCC... but the error does not happen outside of the Nim compiler compilation.
It's like the compiler doesn't find the procedure since it has an underscore (_), but if you remove the underscore, it works normally. The name prefixed with
c_
doesn't matter, as it can be prefixed with anything else but the underscore that won't work. Another way that works normally is when the procedure is imported from a c function, in the case of the pragma {.importc.}.7806ec5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's just
at work. Can be mitigated by