Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: Visual studio link error

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: Visual studio link error


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Re: Visual studio link error
  • Date: Mon, 20 Dec 2010 17:07:49 +0100
  • Organization: GeometryFactory

On Monday 20 December 2010 16:58:33 Yongquan Yang wrote:
> Hi John,
> I renamed the file "libgmp-10.lib" in the directory
> \CGAL-3.7\auxiliary\gmp\lib to "gmp-vc90-mt-gd.lib", the cannot found
> error has been solved, but there is other problems:
>
> 1>LINK : warning LNK4098: defaultlib 'MSVCRT' conflicts with use of other
> libs; use /NODEFAULTLIB:library
> 1>poisson_reconstruction_example.obj : error LNK2019: unresolved external
> symbol
> _GetProcessMemoryInfo@12
> referenced in function "private: unsigned
> int __thiscall CGAL::Memory_sizer::get(bool)const "
> (?get@Memory_sizer@CGAL@
>
> @ABEI_N@Z)
> 1>D:\Work\Yongquan_Yang\VS_Project\Visual Studio
> 2008\Projects\CGALTestAgain\Debug\CGALTestAgain.exe : fatal error LNK1120:
> 1 unresolved externals
>
> I have no idea whether it is the lib problem or anything else.
> Thanks for your help!

I am pretty sure you are linked together old obj files that were compiled
with
CGAL versions *before* CGAL-3.7 (and that is why the linker is searching for
the old gmp lib name gmp-vc90-mt-gd.lib) with obj files that are compiled
with
the current CGAL-3.7 version. Cleanup all you project and restart. And *do
not
rename the gmp library*!

Does your project creates libraries that contain CGAL code?

--
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