Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

iMacker20

macrumors newbie
Original poster
May 12, 2020
21
7
Download link: GCC 15.2

1766023157027.png

This is an installer for GCC 15.2.

System Requirements:
- Mac OS 10.8 to 10.12.
- x86-64 CPU

It comes with compilers for these languages:
- C
- C++
- Objective-C
- Objective-C++
- Fortran
- Modula-2

Included software:
- cctools 949.0.1
- gcc select 0.1
- gcc 15.2.0
- gcc 15 libcxx
- gettext runtime 0.22.5
- gmp 6.3.0
- isl 0.24
- ld64 3
- ld64 274
- libcxx 5.0.1
- libedit 3.1
- libffi 3.4.8
- libgcc15
- libiconv 1.17
- libmpc 1.3.1
- llvm select 2
- llvm 3.7
- lz4 1.10
- mpfr 4.2.2
- ncurses 6.5
- xz 5.8.1
- zlib 1.3.1
- zstd 1.5.7

Notes:
- Software is installed to /opt/local/bin
- The C++ compiler is called g++-mp-15

Test program to test the C++ compiler:

Code:
// Description: demonstrates the #embed feature of gcc 15 by printing the contents of this file
// Build: g++-mp-15 -o program main.cpp && ./program

#include <iostream>
using namespace std;

char code[] = {
#embed "main.cpp"
};

int main()
{
    cout << "\nThis entire program:\n\n" << code << endl;
    return 0;
}

Directions:
1) Save the above program to a file called main.cpp.
2) Run this command to build and test the program: /opt/local/bin/g++-mp-15 -o program main.cpp && ./program

The output should be the program itself.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.