| 1 | = Implementing a mini Boost Fusion in C++0x = |
| 2 | |
| 3 | == Getting GCC 4.3 == |
| 4 | |
| 5 | For Windows users: MinGW is the fastest way to get GCC 4.3. |
| 6 | |
| 7 | The quickest approach is to download MinGW-gcc-4.3-full.zip from this page and extract it into C:\. |
| 8 | |
| 9 | Or, you can use the normal MinGW installer and download the GCC 4.3 binaries separately: |
| 10 | |
| 11 | 1) Download the automated installer for MINGW, here: |
| 12 | |
| 13 | http://sourceforge.net/project/showfiles.php? |
| 14 | group_id=2435&package_id=240780 |
| 15 | |
| 16 | When running the installer, you only need to install the |
| 17 | "minimal" set of files. |
| 18 | |
| 19 | 2) Download the "core" and "g++" GCC 4.3.0 binaries from here: |
| 20 | |
| 21 | http://www.tdragon.net/recentgcc/ |
| 22 | |
| 23 | 3) Unzip the two files over top of your MINGW distribution, which |
| 24 | replaces the default (ancient) compiler with GCC 4.3. |
| 25 | |
| 26 | 4) Try to compile a simple problem, e.g., "static_assert(false, "It |
| 27 | works!");" with |
| 28 | |
| 29 | c:\mingw\bin\g++ -std=c++0x foo.cpp |
| 30 | |
| 31 | For Mac users: MacPorts has a version of GCC 4.3, which should be |
| 32 | installable with: |
| 33 | |
| 34 | sudo port install gcc43 |
| 35 | |
| 36 | Fink also has a version of GCC 4.3 in the unstable distribution. Once |
| 37 | you've configured for the unstable distribution, use: |
| 38 | |
| 39 | fink install gcc43 |
| 40 | |
| 41 | For Linux users: You can build GCC 4.3 on your own (get the source at |
| 42 | gcc.gnu.org), or perhaps be lucky enough to find a binary for your |
| 43 | particular distribution. |
| 44 | |