title: Installing Armadillo with Homebrew on Mac Mavericks
body: <p>I have installed Armadillo with Homebrew with </p>
  
  <pre><code>brew install homebrew/science/armadillo
  </code></pre>
  
  <p>I have tried to compile some code with</p>
  
  <pre><code>g++-4.7 -I/usr/local/include file1.cpp -O2 -llapack -lblas
  </code></pre>
  
  <p>but all I get is </p>
  
  <pre><code>Undefined symbols for architecture x86_64:   "_wrapper_ddot_", referenced from:
  void arma::syrk&lt;false, false, false&gt;::apply_blas_type&lt;double, arma::Mat&lt;double&gt; &gt;(arma::Mat&lt;double&gt;&amp;, arma::Mat&lt;double&gt; const&amp;, double, double) in ccYKNLEL.o   "_wrapper_dgemm_", referenced from:
  _main in ccYKNLEL.o   "_wrapper_dgemv_", referenced from:
  _main in ccYKNLEL.o   "_wrapper_dsyrk_", referenced from:
  void arma::syrk&lt;false, false, false&gt;::apply_blas_type&lt;double, arma::Mat&lt;double&gt; &gt;(arma::Mat&lt;double&gt;&amp;, arma::Mat&lt;double&gt; const&amp;, double, double) in ccYKNLEL.o ld: symbol(s) not found for architecture
  x86_64 collect2: error: ld returned 1 exit status
  </code></pre>
  
  <p>and the same for</p>
  
  <pre><code>g++-4.7 -I/usr/local/include file1.cpp -O2 -framework accelerate
  </code></pre>
  
  <p>also including -larmadillo</p>
  
  <pre><code>g++-4.7 -I/usr/local/include file1.cpp -O2 -larmadillo -llapack -lblas
  </code></pre>
  
  <p>it returns</p>
  
  <pre><code>library not found for -larmadillo
  </code></pre>
  
  <p>And in</p>
  
  <pre><code>/usr/local/Cellar/armadillo/4.100.2/lib/
  </code></pre>
  
  <p>I find the libraries like <code>libarmadillo.4.10.2.dylib</code> but they can't be included with <code>-I</code></p>
  
  <p>What could be the problem?</p>