Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] CGAL disables exception handling in MingW

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] CGAL disables exception handling in MingW


Chronological Thread 
  • From: 杨成林 <>
  • To:
  • Subject: Re: [cgal-discuss] CGAL disables exception handling in MingW
  • Date: Wed, 27 Feb 2013 09:24:15 +0800

In gcc, -static-libgcc disables exception handling. I don't know if  it is enabled by -static.

在 2013-2-26 下午8:20,"Dragan Vidovic" <>写道:
Thank you for your reply Laurent. While making a simple example to
send to you, I have solved the problem. I removed the "-static"
compiler option and now it works. But I am not sure why wouldn't it
work with -static. I have read somewhere that CGAL won't link against
static blas libraries but uses dll instead, so I guess that this could
be related. Anyway, if you think that this should be looked into, the
example is in the attachment.

Dragan


On Tue, Feb 26, 2013 at 11:20 AM, Laurent Rineau
(CGAL/GeometryFactory) <> wrote:
> Le mardi 26 février 2013 10:13:32 Dragan Vidovic a écrit :
>
>> Exception handling stops working in my C++ program if I link it with
>
>> CGAL in MingW, even if no CGAL code is executed. If CGAL is removed,
>
>> exception handling works fine. In Linux everything works fine. I tried
>
>> adding the -mthreads options to the compiler and to the linker while
>
>> building CGAL and my program, but this did not change anything. I
>
>> noticed this problem with CGAL-3.9 and CGAL-4.1 using boost_1_46_0 or
>
>> boost_1_53_0. Compiler version is 4.6.2.
>
>
>
> That issue will probably be difficult to debug.
>
>
>
> Can you please show us a simple .cpp that compiles with MinGW, uses
> exceptions correctly, and no longer runs correctly once CGAL libraries are
> linked with the executable? I will use that to try to reproduce and debug.
>
>
>
> Have you use the same version of the compiler to build the CGAL libraries?
>
>
>
> --
>
> Laurent Rineau, PhD
>
> R&D Engineer at GeometryFactory http://www.geometryfactory.com/
>
> Release Manager of the CGAL Project http://www.cgal.org/
>
>

--
You are currently subscribed to cgal-discuss.
To unsubscribe or access the archives, go to
https://sympa.inria.fr/sympa/info/cgal-discuss





Archive powered by MHonArc 2.6.18.

Top of Page