how to run c on os 12.6
How can I run c++ on ver 12.6 MacBook Air?
How can I run c++ on ver 12.6 MacBook Air?
Launch the Terminal application and at the command prompt, type the following and a return:
clang
That should prompt a dialog to install the last compatible Command LIne Tools for Xcode 14.2 (on Monterey) which will take about 3.2 GB. If that fails, here is the direct download link to this installer. You need to have administrator privileges, and this installation will provide you with the development environment for:
A typical compilation could be:
clang++ -Wall -Oz -o fib_memo fib_memo.C [ -stdlib=libc++ ] [ -std=foobar ]
That last part will prove nonsensical to clang++ and will dump a list of C++ standards it currently supports. And
clang++ -help
man clang
man lldb
will get you more information.
Launch the Terminal application and at the command prompt, type the following and a return:
clang
That should prompt a dialog to install the last compatible Command LIne Tools for Xcode 14.2 (on Monterey) which will take about 3.2 GB. If that fails, here is the direct download link to this installer. You need to have administrator privileges, and this installation will provide you with the development environment for:
A typical compilation could be:
clang++ -Wall -Oz -o fib_memo fib_memo.C [ -stdlib=libc++ ] [ -std=foobar ]
That last part will prove nonsensical to clang++ and will dump a list of C++ standards it currently supports. And
clang++ -help
man clang
man lldb
will get you more information.
how to run c on os 12.6