title: CULA: Undefined reference cula functions
body: <p>I downloaded CULA Dense R17 Free Edition for Linux.</p>
  
  <p>I noticed that in lib and lib64 directories, there isn't libcula_lapack.so but there is only libcula_lapack_basic.so. It should be normal because in culatools site is specified that in this version cula_lapack.dll/so is renamed in cula_lapack_basic.dll/so!</p>
  
  <p>I set environment variables in .bashrc file in this way:</p>
  
  <pre><code>export CULA_LIB_PATH_32=/usr/local/cula/lib
  export CULA_ROOT=/usr/local/cula
  export CULA_LIB_PATH_64=/usr/local/cula/lib64
  export CULA_INC_PATH=/usr/local/cula/include
  export LD_LIBRARY_PATH = "$CULA_LIB_PATH_64"
  </code></pre>
  
  <p>I tried to compile a very simple c program to test if cula run correctly.</p>
  
  <pre><code>#include &lt;cula.h&gt;
  #include &lt;stdio.h&gt;
  
  int main()
  {
      culaStatus s;
      s = culaInitialize();
      if (s != culaNoError)
         printf("%s\n", culaGetStatusString(s));
  
      culaShutdown();
      return 0;
  }
  </code></pre>
  
  <p>I compile with:</p>
  
  <pre><code>gcc -I$CULA_INC_PATH -L$CULA_LIB_PATH_64 -lcula_lapack_basic prog.c -o prog
  </code></pre>
  
  <p>I received this errors:</p>
  
  <pre><code>/tmp/ccDSdmLN.o: In function `main':
  prog.c:(.text+0xe): undefined reference to `culaInitialize'
  prog.c:(.text+0x21): undefined reference to `culaGetStatusString'
  prog.c:(.text+0x33): undefined reference to `culaShutdown'
  collect2: ld returned 1 exit status
  </code></pre>
  
  <p>Probabily linking in compile's istruction or include file in program are wrong!</p>
  
  <p>How to resolve this compilation problem?  :roll:  :roll:  :(
  Can you help me?</p>