Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] disable autolinking?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] disable autolinking?


Chronological Thread 
  • From: Dominik Szczerba <>
  • To:
  • Subject: Re: [cgal-discuss] disable autolinking?
  • Date: Thu, 31 Mar 2011 20:45:12 +0200
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=L3tEGNq2If9k3OmPJ8G3VOfIXpCMzBNVTKsQrjbO8U5UOIIKh5QM6UNSDc4s+5sR7M 0Tv7PU8JDt7zJOnpR/3X5vPRBsYw4OWH7fTO39X0ydEpfGtZAiFUtLjxGYhx6UIbO6cR 4QfvQ0FjA230aVjqdYn//8M7+ZV9n7J8J9WZ8=

> This is the error reported during linking by Visual Studio:
>
> Error   411     error LNK1104: cannot open file 'CGAL-vc100-mt.lib'
>
> However, this name DOES NOT appear in the project dependencies
> (project->properties), so it must be generated dynamically. I want to
> link to CGAL-vc100-mt-g.lib, this one is in the dependencies, but is
> ignored. This should not happen, because CGAL_NO_AUTOLINK is defined.
> CGAL_LIB_DIAGNOSTIC is also defined, but "Linking to lib file:
> CGAL_LIB_FULL_NAME" does not seem to be displayed, which means that it
> is not auto_link.h that is causing this. Very weird.

I found a possible reason: there is this line:

/DEFAULTLIB:"CGAL-vc100-mt.lib"

inside CGAL-vc100-mt-g.lib file. Making a naive copy of
CGAL-vc100-mt-g.lib to CGAL-vc100-mt.lib resolves the linking error.
So as you said, the culprit was RelWithDebInfo that I used. It
generates CGAL-vc100-mt-g.lib file, but that one seems to reference
the non-exissting CGAL-vc100-mt.lib. If you do not support this
compilation mode, why don't you remove it from the allowed
configurations in CMakeLists.txt?

So now I am "only" left with this error:

Error 1 error LNK2005: _pRawDllMain already defined in
mfcs100.lib(rawdllmainproxy.obj)
E:\build\framework\trunk\vtkMy\Filtering\libboost_thread-vc100-mt-1_46_1.lib(tss_pe.obj)

which according to google indicates the need to link with the DLL
version of boost. This one, however, does not seem to be supported by
CGAL/cmake, see the other thread of mine. Ideas how to solve it are
most welcome.

Regards,
Dominik



Archive powered by MHonArc 2.6.16.

Top of Page