title: How to link library in visual studio
body: <p>I'm trying to create a project in c++ with the SMILE library (<a href="http://genie.sis.pitt.edu/index.php/downloads" rel="nofollow">http://genie.sis.pitt.edu/index.php/downloads</a>). On the site I downloaded the Visual Studio 2010 / VC 10.0 SP1 version for x64 (I have windows 7 and visual studio 2010 installed). After create a new project, I went to the project properties->configuration->C/C++->directory of additional inclusions and set the path of the folder that contains the library. When I try to compile Iget the error:</p>
  
  <pre><code>1&gt;------ Inizio compilazione: Progetto: IDSS_2013, Configurazione: Debug Win32 ------
  1&gt;  stdafx.cpp
  1&gt;  AssemblyInfo.cpp
  1&gt;  IDSS_2013.cpp
  1&gt;  Generazione del codice in corso...
  1&gt;  .NETFramework,Version=v4.0.AssemblyAttributes.cpp
  1&gt;LINK : fatal error LNK1104: impossibile aprire il file 'smile_dbg.lib'
  ========== Compilazione: 0 completate, 1 non riuscite, 0 aggiornate, 0 ignorate ==========
  </code></pre>
  
  <p>The source is the one provided with the example in the documentation:</p>
  
  <pre><code>#include "smile.h"
  
  #include &lt;stdio.h&gt;
  
  void CreateNetwork(void);
  void InfereceWithBayesNet(void);
  void UpgradeToInfluenceDiagram(void);
  void InferenceWithInfluenceDiagram(void);
  void ComputeValueOfInformation(void);
  
  int main()
  {
   CreateNetwork();
   InfereceWithBayesNet();
   UpgradeToInfluenceDiagram();
   InferenceWithInfluenceDiagram();
   ComputeValueOfInformation();
   return(DSL_OKAY);
  };
  </code></pre>