User forums > Using Code::Blocks
Simple C Code Will Not Build
stahta01:
--- Quote from: rickb on April 20, 2020, 07:23:54 pm ---I did a find in Terminal and found clang-cc in /Developer/usr/libexec. I believe that's the clang compiler.
Thanks again for replying.
--- End quote ---
No it is not!
Clang compiler is normally "Clang" or "clang"; but it is not "clang-cc".
Edit2: The sub-folder libexec normally contains things that support the GCC or maybe other compilers.
Edit: Look inside of "/Developer/usr" do not look in a sub folder unless you think the path you told Code::Blocks is incorrect! And, if you think it is wrong correct it!
Tim S.
stahta01:
Does the Clang compiler you installed. Install itself as a different command name?
Edit: Google implies the name "llvm+clang" might be used on the 1.0 version of clang.
Edit2: It might be called "llvm-gcc".
Tim S.
oBFusCATed:
@stahta01: Stop speculating, please... llvm-gcc is something else...
The compilers are named clang and clang++ if they are installed they are available in path.
@rickb Does autodetect fails to work? Do you have xcode installed? Have you run clang at least ones from the command line? If you haven't it will fail, because you have to accept the license.
stahta01:
Since the poster would not say he installed a CLang compiler it is all speculation.
Tim S.
rickb:
@oBFusCATed Autodetect did work (see attachment). Yes, I installed Xcode. No, I didn't run clang from the command line (yet).
@stahta01 I did not install clang separately because I thought it came bundled either with Xcode or some other package.
Please bear with me. I haven't written a C program since 1995 with Borland TurboC for DOS.
Thank you.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version