Subject: CGAL users discussion list
List archive
- From: Jeffrey Bush <>
- To:
- Subject: Re: [cgal-discuss] Some CGAL 4.4 Bug Fixes
- Date: Tue, 22 Apr 2014 09:35:36 -0700 (PDT)
Another problem with MSVC / Visual Studio is the Intellisense compiler always
fails during auto-linking, which makes Intellisense never work if you have
imported a CGAL header. Since it will never be linking (it only "compiles")
I think the best solution is to prevent it from auto-linking ever. Two
solutions below work equally well and it is mostly up to taste which to use:
include/CGAL/auto_link/auto_link.h@85:
- #ifndef CGAL_NO_AUTOLINK
+ #if !defined(CGAL_NO_AUTOLINK) && !defined(__INTELLISENSE__)
or somewhere in some config header (before any auto-linking):
+ #if defined(__INTELLISENSE__) && !defined(CGAL_NO_AUTOLINK)
+ #define CGAL_NO_AUTOLINK
+ #endif
After that I am able to use Intellisense with CGAL. Note that in the future
additional Intellisense problems may come up and there seems to be no good
way to test for them, so you will have to wait for users to complain. But
basically anything that checks defines related to linking will have
problems.
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Some-CGAL-4-4-Bug-Fixes-tp4659159p4659177.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Some CGAL 4.4 Bug Fixes, Jeffrey Bush, 04/19/2014
- Re: [cgal-discuss] Some CGAL 4.4 Bug Fixes, Jeffrey Bush, 04/22/2014
- Re: [cgal-discuss] Some CGAL 4.4 Bug Fixes, Andreas Fabri, 04/25/2014
- Re: [cgal-discuss] Some CGAL 4.4 Bug Fixes, Jeffrey Bush, 04/26/2014
- Re: [cgal-discuss] Some CGAL 4.4 Bug Fixes, Jeffrey Bush, 04/27/2014
- Re: [cgal-discuss] Some CGAL 4.4 Bug Fixes, Jeffrey Bush, 04/26/2014
- Re: [cgal-discuss] Some CGAL 4.4 Bug Fixes, Andreas Fabri, 04/25/2014
- Re: [cgal-discuss] Some CGAL 4.4 Bug Fixes, Andreas Fabri, 04/24/2014
- Re: [cgal-discuss] Some CGAL 4.4 Bug Fixes, Jeffrey Bush, 04/22/2014
Archive powered by MHonArc 2.6.18.