Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] failing to compile simple code under VS2010

Subject: CGAL users discussion list

List archive

[cgal-discuss] failing to compile simple code under VS2010


Chronological Thread 
  • From: Eran Yanay <>
  • To:
  • Subject: [cgal-discuss] failing to compile simple code under VS2010
  • Date: Thu, 8 Nov 2012 13:52:24 -0800 (PST)

hello,
Im trying to run cgal library with my visual studio 2010
i have followed several instructions and finally did whats described here:
http://jdt.googlecode.com/svn-history/r64/trunk/jdt/src/CGAL/docs/CGAL_Guidelines.docx
as its the most informative i found.
i installed cgal 4.1, zlib, qt, boost..whatever needed
i maanged to to all five steps good,
but in step 7, where im requested to write a simple code, i do:
-------------------
#include <CGAL/Min_sphere_of_spheres_d.h>
#include <CGAL/Min_sphere_of_spheres_d_traits_3.h>
#include <cstdio>
#include <iostream>
using namespace std;

int main () {
cout << "Hello World" << endl;
return 0;
}
----------------
however, when i build it according to steps6, when i push the build button
in VS, i get:
----------------

------ Build started: Project: ZERO_CHECK, Configuration: Debug Win32 ------
Build started 11/8/2012 11:45:54 PM.
InitializeBuildStatus:
Creating "Win32\Debug\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild" because
"AlwaysCreate" was specified.
FinalizeBuildStatus:
Deleting file "Win32\Debug\ZERO_CHECK\ZERO_CHECK.unsuccessfulbuild".
Touching "Win32\Debug\ZERO_CHECK\ZERO_CHECK.lastbuildstate".

Build succeeded.

Time Elapsed 00:00:00.82
------ Build started: Project: main, Configuration: Debug Win32 ------
Build started 11/8/2012 11:45:55 PM.
InitializeBuildStatus:
Touching "main.dir\Debug\main.unsuccessfulbuild".
CustomBuild:
All outputs are up-to-date.
ClCompile:
All outputs are up-to-date.
ManifestResourceCompile:
All outputs are up-to-date.
LINK : fatal error LNK1104: cannot open file 'CGAL-vc100-mt-gd-4.1.lib'

Build FAILED.

Time Elapsed 00:00:00.87
------ Skipped Build: Project: ALL_BUILD, Configuration: Debug Win32 ------
Project not selected to build for this solution configuration
========== Build: 1 succeeded, 1 failed, 0 up-to-date, 1 skipped ==========


I noticed that cgal/lib was created together with the cgal.sln file but the
lib folder is empty.
Its very important for me that it'll work eventually..i'll be VERY thankful
for any of you willing to sort it out with me

Thanks!



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/failing-to-compile-simple-code-under-VS2010-tp4656187.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page