holzschu / a-shell

A terminal for iOS, with multiple windows
BSD 3-Clause "New" or "Revised" License
2.64k stars 116 forks source link

fail to complie CPP #831

Open Mrlaolu opened 1 week ago

Mrlaolu commented 1 week ago

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 commented 1 week ago

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

Mrlaolu commented 1 week ago

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

holzschu commented 1 week ago

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 commented 1 week ago

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

holzschu commented 1 week ago

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.