Skip to Content.
Sympa Menu

cgal-discuss - CGAL auto-link and gmp vs MS Visual C++

Subject: CGAL users discussion list

List archive

CGAL auto-link and gmp vs MS Visual C++


Chronological Thread 
  • From: "Segall, Edward" <>
  • To: <>
  • Subject: CGAL auto-link and gmp vs MS Visual C++
  • Date: Fri, 12 Oct 2007 14:47:29 -0400

Hello,

When I install CGAL 3.3.1 on a Windows machine under Cygwin using
install_cgal (rather than using the precompiled installer) and I select
the Visual C++ 8.0 compiler, it builds just one version of the CGAL
library. This version is named CGAL.lib. When I then try to build an
application using this installation, the auto-link mechanism causes a
link failure because there is no library CGAL-vc80-mt.lib. Based on the
name, it is looking for the release multi-threaded dynamic version of
the library. I don't know what version CGAL.lib is, so I don't want to
assume it's the release multi-threaded dynamic version.

I was able to work around this error by building the required version of
the library using the Visual Studio solution found in
CGAL/src/CGAL_80.sln. Unfortunately, that effort succeeded only when I
modified the paths of the cgallib_80 and Core_80 projects within that
solution to include the gmp.h file that was installed (in a separate
installation of CGAL 3.3.1) by the Windows installer. GMP is not
installed on my system (at least, not separately from the separate CGAL
installation), so it was not discovered by install_CGAL.

I understand that I should be able to use install GMP separately and
then use that installation's gmp.h. However, this raises the question of
why gmp.h is required. Although it is recommended, it's supposed to be
optional; plus, install_cgal supposedly configured CGAL to work without
GMP. (I verified this by checking
config/install/i686_CYGWINNT-5.1_CL.EXE-1400.)

If GMP is indeed required, then to install it I will need some
additional information that I don't see on the GMP web site.
Specifically, do I need to do anything special to configure the GMP
installation to use the MS VC++ compiler? When I run the configure
script, it mentions gcc but not cl. I don't want to assume the gmp.h
file that results will work correctly under cl. Can you advise?

Thank you,

Ed Segall




Confidentiality Notice
This e-mail (including any attachments) is intended only for the recipients
named above. It may contain confidential or privileged information and should
not be read, copied or otherwise used by any other person. If you are not a
named recipient, please notify the sender of that fact and delete the e-mail
from your system.





Archive powered by MHonArc 2.6.16.

Top of Page