Skip to content

Hello world does not compile #1

Description

@AvoidMe

Tested inside fedora 43 container, ubuntu 26.04 container and on regular fedora 42 installation, same error
Took example directly from README.md
GCC is present and can compile code just fine:

root:/claudes-c-compiler# cat > hello.c << 'EOF'
#include <stdio.h>
int main(void) {
    printf("Hello from CCC!\n");
    return 0;
}
EOF
root:/claudes-c-compiler# ./target/release/ccc -o hello hello.c
/usr/include/stdio.h:34:10: error: stddef.h: No such file or directory
/usr/include/stdio.h:37:10: error: stdarg.h: No such file or directory
ccc: error: 2 preprocessor error(s) in hello.c
root:/claudes-c-compiler# gcc -o hello hello.c
root:/claudes-c-compiler# ./hello
Hello from CCC!
root@1b5343a2f014:/claudes-c-compiler#```

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions