Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] About Recompiling the TAUCS

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] About Recompiling the TAUCS


Chronological Thread 
  • From: Laurent Saboret <>
  • To:
  • Subject: Re: [cgal-discuss] About Recompiling the TAUCS
  • Date: Mon, 11 Jun 2007 10:49:29 +0200
  • Organization: INRIA Sophia-Antipolis

Hi,


a écrit :
Dear all:
I have fixed the TAUCS crashing problem with Laurent Saboret's help. As he has said, the reason of the problem is the ATLAS libs given in CGAL3.3 is not compatible with my machine.
I recompiled the ATLAS-3.6.0 on my machine and the taucs linear solver
no longer crashes! But I still have a problem about compiling the TAUCS.
If I just recompile ATLAS and use the existed taucslib-v71-mt given in CGAL3.3, there is no problem.

If you have no compilation warning/error with your recompiled ATLAS lib and the TAUCS lib shipped with CGAL, just stick to this configuration :-)

> But if I recompile the TAUCS with the recompiled ATLAS libs, and then put the new ATLAS and new TAUCS libs into $(CGALROOT)/auxiliary/taucs/lib, I got many linking errors when I compile my vcproj:

libcmt.lib(crt0dat.obj) : error LNK2005: _exit already defined in msvcrt.lib(MSVCR71.dll) libcmt.lib(crt0dat.obj) : error LNK2005: __exit already defined in msvcrt.lib(MSVCR71.dll) libcmt.lib(crt0dat.obj) : error LNK2005: __cexit already defined in msvcrt.lib(MSVCR71.dll) libcmt.lib(crt0dat.obj) : error LNK2005: __c_exit already defined in msvcrt.lib(MSVCR71.dll) libcmt.lib(crt0init.obj) : error LNK2005: ___xc_z already defined in msvcrt.lib(cinitexe.obj) libcmt.lib(crt0init.obj) : error LNK2005: ___xc_a already defined in msvcrt.lib(cinitexe.obj) libcmt.lib(crt0init.obj) : error LNK2005: ___xi_z already defined in msvcrt.lib(cinitexe.obj) libcmt.lib(crt0init.obj) : error LNK2005: ___xi_a already defined in msvcrt.lib(cinitexe.obj) libcmt.lib(crt0.obj) : error LNK2005: __amsg_exit already defined in msvcrt.lib(MSVCR71.dll) libcmt.lib(winxfltr.obj) : error LNK2005: __XcptFilter already defined in msvcrt.lib(MSVCR71.dll) msvcrt.lib(MSVCR71.dll) : error LNK2005: _atoi already defined in libcmt.lib(atox.obj) msvcrt.lib(MSVCR71.dll) : error LNK2005: _isdigit already defined in libcmt.lib(_ctype.obj) msvcrt.lib(MSVCR71.dll) : error LNK2005: _isalnum already defined in libcmt.lib(_ctype.obj) msvcrt.lib(MSVCR71.dll) : error LNK2005: _fprintf already defined in libcmt.lib(fprintf.obj) msvcrt.lib(MSVCR71.dll) : error LNK2005: __errno already defined in libcmt.lib(dosmap.obj) msvcrt.lib(MSVCR71.dll) : error LNK2005: _fflush already defined in libcmt.lib(fflush.obj) msvcrt.lib(MSVCR71.dll) : error LNK2005: _sprintf already defined in libcmt.lib(sprintf.obj) msvcrt.lib(MSVCR71.dll) : error LNK2005: _strncmp already defined in libcmt.lib(strncmp.obj) msvcrt.lib(MSVCR71.dll) : error LNK2005: __isctype already defined in libcmt.lib(isctype.obj) msvcrt.lib(MSVCR71.dll) : error LNK2005: __itoa already defined in libcmt.lib(xtoa.obj) msvcrt.lib(MSVCR71.dll) : error LNK2005: __setmbcp already defined in libcmt.lib(mbctype.obj) LINK : warning LNK4098: defaultlib "MSVCRT" conflicts with use of other libs; use /NODEFAULTLIB:library
msvcrt.lib(cinitexe.obj) : warning LNK4098: defaultlib "libcmt.lib" conflicts
with use of other libs; use /NODEFAULTLIB:library
vcf2c-vc71-mt.lib(main.obj) : error LNK2019: unresolved external symbol
_MAIN__ referenced in function _main

I just used the makefile in the TAUCS package to compile the libtaucs.lib. When the
lib is created, I renamed it as "libtaucs-vc71-mt.lib" and put it into
/auxiliary/taucs/lib.
I'm not sure if my way of creating the taucs lib is correct and don't
know where the linking errors come from.
Would you please tell me what's wrong with my taucs lib?

If you *have* to recompile also the TAUCS lib:

I assume that you recompiled ATLAS using gcc. Contact me if you used VC++.

* Copy ATLAS libraries into path\to\TAUCS\external\lib\win32. Rename them
.lib.
* in an MS-DOS Prompt Shell:
vsvars32.bat
cd path\to\TAUCS
build_taucs_win32_for_CGAL path\to\CGAL-3.3\auxiliary

This will compile all variants of TAUCS library for Windows/Visual C++ and copy them to path\to\CGAL-3.3\auxiliary\lib.

Best regards,
--
Laurent Saboret
INRIA Sophia-Antipolis




  • About Recompiling the TAUCS, kevin . kai . xu, 06/10/2007
    • Re: [cgal-discuss] About Recompiling the TAUCS, Laurent Saboret, 06/11/2007

Archive powered by MHonArc 2.6.16.

Top of Page