Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: error when using CGAL 3.8 and taucs

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: error when using CGAL 3.8 and taucs


Chronological Thread 
  • From: Laurent Saboret <>
  • To:
  • Subject: Re: [cgal-discuss] Re: error when using CGAL 3.8 and taucs
  • Date: Mon, 22 Aug 2011 14:20:25 +0200

Hi Kyewong,

You are right. CGAL Windows installer lacks the /MDd version of TAUCS. I do not know why.

Best regards,
Laurent SABORET


Le 22/08/2011 12:51, kyewong a écrit :
Hi Laurent,

Acturally I've solved this problem. Since it is mainly due to the TAUCS problem, I did not put my solution to this CGAL mainling list.
The error is just because of the TAUCS libraries. Since the program using CGAL can only be of /MD option, if the user would like to use independent TAUCS package (not the one contained in CGAL), he has to compile and build the TAUCS libraries with the /MD (and /MDd) option, otherwise, there will be either compilation or runtime problems if some functions of TAUCS are used.
Meanwhile, since CGAL only contains the taucs libraries produced using /MD option (no /MDd versions provided), there will also exist runtime error in debug mode if one just uses the taucs libraries provided in CGAL (That's my understanding on the reason of the problem. I'm not 100% sure on it).

So I personally suggest the user compile TAUCS under /MDd and /MD himself, if both CGAL and TAUCS are needed in his program. The instrucsion on building TAUCS under /MD can be found at: http://matrixprogramming.com/2009/03/taucs-md

Thanks!

On Mon, Aug 22, 2011 at 6:08 PM, Laurent Saboret-3 [via cgal-discuss] <[hidden email]> wrote:
Hi Kyewong,

Sorry for this late answer.

You are right, cmake forces you to use the /MD runtime. In the other hand, CGAL Windows installer downloads TAUCS library for VC++ 9 with /MD runtime.
Your problem is probably different.

Could you describe more precisely the error you get? Is is at compilation or execution time?

Best regards,
Laurent Saboret


Le 15/08/2011 08:52, kyewong a écrit :

> Hi, i need to use both CGAL 3.8 and taucs in my project.
> However, some problems(conflicts) are found.
>
> *1*  If i just simply use the taucs provided in CGAL 3.8, then error will
> occur when running to the "taucs_ccs_factor_llt_mf" function I called in my
> program. This error comes from the mlock.c file:
> void __cdecl _unlock (
>          int locknum
>          )
> {
>          /*
>           * leave the critical section.
>           */
>          LeaveCriticalSection( _locktable[locknum].lock );
> }
>
> *2*  I guess the reason for this error is that since only lib files of
> dynamic link can be produced using cmake when building CGAL 3.8, the visual
> studio project using CGAL 3.8 can only be of /MD option. This way, the taucs
> lib should also be built under /MD, while the default taucs lib in CGAL is
> built under /MT.
>
> So if I still want to use functions such as "taucs_ccs_factor_llt_mf", I'll
> have to recompile taucs under /MD independently, which will be another long
> troublesome story...
>
> I'm wondering if there is any elegant way to avoid this trouble please?
> Thanks!
>
> --
> View this message in context: http://cgal-discuss.949826.n4.nabble.com/error-when-using-CGAL-3-8-and-taucs-tp3744007p3744007.html
> Sent from the cgal-discuss mailing list archive at Nabble.com.
>

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




If you reply to this email, your message will be added to the discussion below:
http://cgal-discuss.949826.n4.nabble.com/error-when-using-CGAL-3-8-and-taucs-tp3744007p3759682.html
To unsubscribe from error when using CGAL 3.8 and taucs, click here.



--
Kai WANG



View this message in context: Re: error when using CGAL 3.8 and taucs
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page