Skip to content

fail to complie CPP #831

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

Open
Mrlaolu opened this issue Oct 1, 2024 · 5 comments
Open

fail to complie CPP #831

Mrlaolu opened this issue Oct 1, 2024 · 5 comments

Comments

@Mrlaolu
Copy link

Mrlaolu commented Oct 1, 2024

I can complie a C program.But when I complie a simple C++ program like

include <iostream>
int main(){
        std::cout << 1;
        return 0;
}

It show
16a85aea71f69b67782edc6bfc4fbc0
How can i solve it

@holzschu
Copy link
Owner

holzschu commented Oct 1, 2024

I think you need to compile C++ files with clang++, not clang.

@Mrlaolu
Copy link
Author

Mrlaolu commented Oct 1, 2024

clang++ also didn't work/(ㄒoㄒ)/~~
8c65f03a05211710f02e3807ac3ea55

@holzschu
Copy link
Owner

holzschu commented Oct 1, 2024

I am unable to reproduce that one, even after un-installing and re-installing llvm-18. Given your other issue, I suspect something went with the downloading and installing of llvm-18, but I'm not sure what. Did you have any error messages when unpacking?

@Mrlaolu
Copy link
Author

Mrlaolu commented Oct 1, 2024

I remove llvm and reinstall llvm-18 ,and it works. Thank you very much
3a580c58680a191429e8fbb2b8aa57d

@holzschu
Copy link
Owner

holzschu commented Oct 1, 2024

Oh, I see. It was an issue if both llvm and llvm-18 are installed together. I'll keep it in mind if someone has the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants