title: Problem linking my code with ARPACK on OSX (using MacPorts for ARPACK)
body: <p>I am trying to compile a <code>C++</code> program which invokes the ARPACK library.</p>
  
  <p>My problem is that when everything is linked, some of the symbols in the ARPACK library do not get resolved. They are</p>
  
  <pre><code>__gfortran_transfer_integer   
  __gfortran_transfer_character  
  __gfortran_transfer_complex   
  __gfortran_compare_string  
  __gfortran_st_write_done  
  __gfortran_st_write  
  __gfortran_transfer_real  
  __gfortran_transfer_array 
  </code></pre>
  
  <p>I did a brute force search on my <code>lib</code> directory, and found no library which provided all of these symbols. A couple of them are provided by <code>libf77blas</code>, and it looks like <code>g95</code> has some similar symbols (with <code>gfortran</code> replaced by <code>g95</code>), but I am at a complete loss as to what else I might need to install. I am compiling my code with</p>
  
  <p><code>g++-mp-4.5 -O3 -Wall -Wl,-search_paths_first -headerpad_max_install_names my.o -o my.out  -L/opt/local/lib -larpack -lm -L/opt/local/lib -lgsl -lgslcblas -lm -lf77blas -llapack -larpack -lqblas -lsquack</code></p>
  
  <p>and <code>/opt/local/lib</code> actually has all the libraries I reference.</p>
  
  <p>Has anyone run into this problem, or can point to the solution?</p>