-
-
Notifications
You must be signed in to change notification settings - Fork 248
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
Error when compiling with --link-libc=no
#1937
Comments
I can't reproduce this. What version of C3 are you using? I think it was fixed in 0.6.6. |
I realized that the version of C3 I was using was 0.6.5. I updated to the latest commit from the
|
It's the stack protector added by default. Easiest way to get rid of it is to use -g0 |
When compiling with
And then when trying to run the program, I get:
It seems like |
Yes, that is completely normal @amarz45 |
If you do not link libc, then you need to provide all the necessary libraries to link with yourself. |
Let’s say I have the following C3 program:
If I try to compile with
c3c compile main.c3
, it works as expected. However, I want to compile a statically-linked executable. But if I try to compile withc3c compile --link-libc=no main.c3
, I get the following error:The text was updated successfully, but these errors were encountered: