Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Re: CGAL & Eclipse (WINDOWS)

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: CGAL & Eclipse (WINDOWS)


Chronological Thread 
  • From: ManosK <>
  • To:
  • Subject: [cgal-discuss] Re: CGAL & Eclipse (WINDOWS)
  • Date: Wed, 28 Apr 2010 07:25:34 -0700 (PDT)



Sebastien Loriot (GeometryFactory) wrote:
>
> ManosK wrote:
>>
>> Sebastien Loriot (GeometryFactory) wrote:
>>> ManosK wrote:
>>>> Hi all;
>>>>
>>>> I have succeeded in installing CGAL in Visual Studio 2008.
>>>> I have been unsuccessfully trying to migrate the created solution's
>>>> functionality in Eclipse IDE for C/C++ - my latest problem being the
>>>> error
>>>> call of overloaded `enum_cast(CGAL::Uncertain<CGAL::Sign>)' is
>>>> ambiguous
>>>> that occurs in the file 'sign_of_determinant.h' of folder
>>>> CGAL-3.6/INCLUDES/CGAL/predicates.
>>>>
>>>> My basic question at this point is: Is it possible for a migration like
>>>> the
>>>> one described above to occur? Or are the incompatibilities between the
>>>> VC
>>>> 9.0 compiler and the g++ 3.4.5 my Eclipse is using insurmountable?
>>>>
>>>> What is more, has anyone encountered the error described? If so, is
>>>> there
>>>> a
>>>> workaround for this issue?
>>>>
>>>> Thanks!!!
>>> cmake is able to generate input for Eclipse.
>>> Do you absolutely need to migrate your VS project?
>>>
>>> S.
>>>
>>
>> I created a new project based on libs created for Eclipse, like you
>> suggested.
>> However, the error message showed up in my new project as well :/
>>
> Does this error appear when you build CGAL or when you build
> one other program using CGAL? In the latter case, could you post
> some code (at least the line that makes the error)
>
> S.
>

I actually created a project and tried to run one of the examples provided
with CGAL.
The problem occurred with the initial build in the header file
'sign_of_determinant.h', in the following return statement:

template <class RT>
inline
typename Sgn<RT>::result_type
sign_of_determinant( const RT& a00, const RT& a01,
const RT& a10, const RT& a11)
{
return enum_cast<Sign>(CGAL_NTS compare( a00*a11, a10*a01));
}

To be more specific, the exact error was:
C:/INCLUDES/CGAL/predicates/sign_of_determinant.h:38: error: call of
overloaded `enum_cast(CGAL::Uncertain<CGAL::Sign>)' is ambiguous
C:/INCLUDES/CGAL/enum.h:114: note: candidates are: T CGAL::enum_cast(const
U&) [with T = CGAL::Sign, U = CGAL::Uncertain<CGAL::Sign>]
C:/INCLUDES/CGAL/Uncertain.h:640: note: CGAL::Uncertain<T1>
CGAL::enum_cast(CGAL::Uncertain<T2>) [with T = CGAL::Sign, U = CGAL::Sign]

Thanks a lot
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/CGAL-Eclipse-WINDOWS-tp2069045p2069298.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page