User forums > Using Code::Blocks

Simple C Code Will Not Build

(1/4) > >>

rickb:
I cannot build a simple C program using:  Code::Blocks 13.12 on Mac OS X 10.7.5.  I know this is a legacy Mac, but it is all I've got for now.  My instructor recommends using the LLVM Clang compiler which I selected during setup.  When I build the standard "Hello World" or "Welcome to C programming" code, an object file is created but "/bin/sh: clang++ command not found" shows at bottom of the build log.  The Build messages show "Build failed: 0 error(s), 0 warning(s), (0 minute(s), 0 second(s)).
The attachment shows the Toolchain executables. 

stahta01:
The directions say to leave off the bin folder!
Please remove the bin from end of the path; does it work then?

Tim S.

rickb:
No, I get the same messages.  Thanks for replying.

stahta01:
Did you install the Clang compiler?

Tim S.

rickb:
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.

Navigation

[0] Message Index

[#] Next page

Go to full version