-
Notifications
You must be signed in to change notification settings - Fork 377
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
Does not compile with tcc 0.9.27 #109
Comments
Just not tested recently. I guess some aspect of |
Would love to see this fixed. I am creating a project that needs to bundle TCC and use Cello. I don't want to have to rely on the system compiler for each platform. Attempted hello world example using TCC and failed: tcc -fdollars-in-identifiers -I. example.c -L. -lCello -DCELLO_NSTRACE #define CELLO_NSTRACE
#include "Cello.h"
int main(int argc, char** argv)
{
print("ASDF\n");
return 0;
} Compiles with GCC just fine but throws this error when used with TCC:
I could be wrong, but I believe it is referring to the string being passed to the Also, just discovered this project and I think it is amazing! Keep up the good work! |
Thanks I'll try to find some time to work out what has changed. Looks like it might be something in the macros used for variable argument functions... |
Have you had a chance to look into this? =) |
I took a look. For some reason
Then it will throw that error, however if I do this:
It works fine... However the definition of
Even if you remove all the other stuff you still get the same error:
It seems to be failing to expand Here I am not sure exactly what to do - I tried all my normal preprocessor hacks to try and get it to expand differently but I couldn't find anything that works. Maybe it is worth reporting a bug with Either way I have a feeling this is not Cello related and the same issue might exist in normal C programs compiled with Dan |
Thank you very much for taking time out of your day to address this. I really appreciate it! Although the Thank you for narrowing this down and for creating such an ingenious project! |
Just a quick update for those interested in this issue in 2024. Many distributions are still delivering an older version of tcc which is incompatible. However the latest dev branch from https://repo.or.cz/tinycc.git seems to be working fine. |
Hello,
Thanks for the info. Indeed with tcc0928rc, I manage to compilethe CELLO library in 64 bits, on the other hand the compilation fails in 32 bitswith the error:C:/codeblocks/AppData/tcc/include/winapi/winnt.h:1478: error: invalid operand reference after %
Do you have any idea?
Thanks again
Le jeudi 26 septembre 2024 à 19:39:32 UTC+2, KaruroChori ***@***.***> a écrit :
Just a quick update for those interested in this issue in 2024. Many distributions are still delivering an older version of tcc which is incompatible. However the latest dev branch from https://repo.or.cz/tinycc.git seems to be working fine.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.Message ID: ***@***.***>
|
Cannot compile either v2.0.3 and v2.1.0 with the latest tcc version from http://repo.or.cz/tinycc.git mob branch.
However, this page http://libcello.org/learn/best-improvements-of-cello-2.0 under
Portability
mentions that it can indeed be doneHas anything changed since or has
tcc
not been tested?The text was updated successfully, but these errors were encountered: