InterviewSolution
| 1. |
Why Do I Get Errors When Using Compiler Optimization On Mac Os X? |
|
Answer» The default COMPILER on Mac OS X is G++ 4.0 (at least on Tiger and Leopard). It has some bugs that are unfortunately ENCOUNTERED by some programs using CGAL when optimizing. We recommend that you use a more recent VERSION of g++, such as g++ 4.2, which you can get by upgrading to the latest XCode, or using Fink. You can then select it by PASSING the following flags to CMake:- DCMAKE_CXX_COMPILER=/usr/bin/g++-4.2 -DCMAKE_C_COMPILER=/usr/bin/gcc-4.2 The default compiler on Mac OS X is g++ 4.0 (at least on Tiger and Leopard). It has some bugs that are unfortunately encountered by some programs using CGAL when optimizing. We recommend that you use a more recent version of g++, such as g++ 4.2, which you can get by upgrading to the latest XCode, or using Fink. You can then select it by passing the following flags to CMake:- DCMAKE_CXX_COMPILER=/usr/bin/g++-4.2 -DCMAKE_C_COMPILER=/usr/bin/gcc-4.2 |
|