The following platforms are supported as of Release 4.2:
If your platform/compiler is not on this list, this does not necessarily imply that CGAL does not work on your system. Note: 64-bit variants of these platforms are also supported. The Installation Guide that will guide you through the installation process is part of the distribution.
Visual C++ related issues
Choosing the Runtime Library
Do not mix static and dynamic versions of the run-time libraries (CRT), and make sure that all static and dynamic link libraries are built with the same version of the CRT. More than one copy of the run-time libraries in a process can cause problems, because static data in one copy is not shared with the other copy. The linker prevents you from linking with both static and dynamic versions within one .exe file, but you can still end up with two (or more) copies of the run-time libraries. For example, a dynamic-link library linked with the static (non-DLL) versions of the run-time libraries can cause problems when used with an .exe file that was linked with the dynamic (DLL) version of the run-time libraries. (You should also avoid mixing the debug and non-debug versions of the libraries in one process because the debug version might have different definition of objects, as is the case of the STL containers and iterators in VC8.)
In the IDE, go to Project-> ... properties->C/C++->Code Generation and select in "Runtime Library".
Automatic Library Selection
To prevent mixing different run-time libraries, starting from CGAL version 3.3, boost-style automatic library selection (auto-linking) is used for CGAL, CGAL_Qt, CGAL_Qt4, CGAL_Core, CGAL_PDBCore, CGAL_ImageIO. This feature allows you to choose any build configuration for your application without worrying to have a matching precompiled .lib to link against.
Auto-linking works by encoding the compiler+configuration in the library filename and using #pragma to link the file automatically.
For CGAL version 3.3 - 3.6 this was also done for the third-party libraries installed via the windows installer (GMP and MPFR). Starting from CGAL version 3.7 these C libraries are precompiled with mingw/mingw64 in release mode and dynamically linked against the C runtime.
Run-Time Type Information
You must enable run-time type information. In the IDE, go to Project-> ... properties->C/C++->Language. In makefiles add the /GR compiler option.
There are no specific problems using MFC and CGAL version.
Currently some of the CGAL demos work with Qt3, others with Qt4.
VC 8 STL
Visual 8 now comes with the Dinkumware STL implementation which has a bug in std::operator(istream&, int) related to locales. When you read int's separated by commas it produces a bug. The workaround is to add whitespace between the number and the comma, or to set the locale correctly by calling std::locale::global(std::locale("C")); in the main routine.
Last modified on 17 April 13. contact information