Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Dynamic library for Windows

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Dynamic library for Windows


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Dynamic library for Windows
  • Date: Wed, 9 Mar 2011 18:00:41 +0100
  • Organization: GeometryFactory

Le mercredi 09 mars 2011 17:39:14, DannyM a écrit :
> Yes of course, and I do so, but the problem is, that I cannot transfer the
> DLL to another Windows PC, because the CGAL lib is created under Windows
> witch Visual Studio and there are some strange dependencies....if there
> where a CGAL DLL I can transfer such DLL and can create a new DLL with
> CGAL and JNI on the other PC which should work fine.

No. The "strange dependencies" you refere to are the C and C++ runtimes (also
named libc and libc++ on other platformes).

If you compile anything in Debug mode, then you will depend on the
MSVCRTd.dll, that is distributed with Visual Studio. Then, the machine you
transfer to must have the version of Visual Studio as you, to have the same
version of MSCVRTd.dll. If you compile a C++ program/library, then you need
MSVCP in Debug mode, same version as yours.

If you compile in Release mode, that is easier, because various version of
the
C and C++ runtimes as usually distributed in all recent versions of Windows.

If a specific *release* runtime is not on a machine, you can download it from
microsoft.com. See for example the first results of this Google query:

http://www.google.com/search?q=Microsoft+Redistributable+Package

The *debug* C and C++ runtimes are not distributed for free by Microsoft.
They
are only shipped with Visual Studio. I think the rational is that one are not
supposed to distribute debug applications or debug libraries.

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/



Archive powered by MHonArc 2.6.16.

Top of Page