Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] visual studio 2010: void __cdecl CGAL::assertion_fail(char const *,char const *,int,char const *)
Chronological Thread
- From: "Laurent Rineau (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] visual studio 2010: void __cdecl CGAL::assertion_fail(char const *,char const *,int,char const *)
- Date: Tue, 21 Feb 2012 11:02:06 +0100
- Organization: GeometryFactory
Le lundi 20 février 2012 14:39:18 sgdimitris a écrit :
> Hello I'm Dimitris,
> as I have mentioned in older posts I want to use CGAL for a project for my
> university.
> I used cmake-gui (cmake 2.8) and i succesfully configure and getnerate cgal.
> BUt I try to use CGAL in my project and I cannot. I am using visual studio
> 2010.
>
> More specific, I got the error
> error LNK2019: unresolved external symbol "void __cdecl
> CGAL::assertion_fail(char const *,char const *,int,char const *)"
> (?assertion_fail@CGAL@@YAXPBD0H0@Z)
> referenced in function "public:
> __thiscall
> CGAL::Interval_nt<0>::Test_runtime_rounding_modes::Test_runtime_rounding_mod
> es(void)"
> (??0Test_runtime_rounding_modes@?$Interval_nt@$0A@@CGAL@@QAE@XZ)
> 1>C:\Users\user\documents\visual studio
> 2010\Projects\tset_studyhelp\Debug\tset_studyhelp.exe : fatal error LNK1120:
> 1 unresolved externals
>
> I tried to see previous topics so I changed C/C++ -> Code Generation ->
> Runtime Library and I chose Multi-Threaded Debug (/MTD) or Multi-Threaded
> (/MT) and in both I got that error
> "LINK : fatal error LNK1104: cannot open file 'CGAL-vc100-mt-sgd.lib' "
> With the other two options (Multi-Threaded Debug DLL (/MDD) or
> Multi-Threaded DLL(/MD)) I got the error LNK2019 that I menioned before(in
> the start of the topic).
/MT and /MTd are flags used to link with the static C and C++ runtimes, and
are not supported by CGAL.
See the documentation in MSDN:
http://msdn.microsoft.com/en-us/library/2kzt1wy3.aspx
The CMakeCache.txt you send us shows that you configured (and probably build)
CGAL libraries using the x64 version of the MSVC2010, in 64 bits. Is that
possible that you are trying to compile your user program in 32 bits? That
could explain the errors you get. *But*, in that case, the error LNK1120
should not be the first error in the error log. Check that you really
reported
us the first error. Especially check for the error LNK1112 (module machine
type 'x86' conflicts with target machine type 'x64').
--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/
- [cgal-discuss] visual studio 2010: void __cdecl CGAL::assertion_fail(char const *,char const *,int,char const *), sgdimitris, 02/20/2012
- Re: [cgal-discuss] visual studio 2010: void __cdecl CGAL::assertion_fail(char const *,char const *,int,char const *), Sebastien Loriot (GeometryFactory), 02/21/2012
- Re: [cgal-discuss] visual studio 2010: void __cdecl CGAL::assertion_fail(char const *,char const *,int,char const *), Laurent Rineau (GeometryFactory), 02/21/2012
- Re: [cgal-discuss] visual studio 2010: void __cdecl CGAL::assertion_fail(char const *,char const *,int,char const *), Laurent Rineau (GeometryFactory), 02/21/2012
- [cgal-discuss] Re: visual studio 2010: void __cdecl CGAL::assertion_fail(char const *,char const *,int,char const *), sgdimitris, 02/21/2012
- Re: [cgal-discuss] Re: visual studio 2010: void __cdecl CGAL::assertion_fail(char const *,char const *,int,char const *), Laurent Rineau (GeometryFactory), 02/21/2012
- [cgal-discuss] Re: visual studio 2010: void __cdecl CGAL::assertion_fail(char const *,char const *,int,char const *), sgdimitris, 02/21/2012
Archive powered by MHonArc 2.6.16.