title: g++ throwing file not recognized: File format not recognized error
body: <p>getting following error with the command <code>g++ -o test -L . -l pq</code></p>
  
  <pre><code>libpq.so: file not recognized: File format not recognized
  
  #file libpq.so
  libpq.so: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), not stripped
  </code></pre>
  
  <p>gcc version 4.1.2 20070115 (SUSE Linux)</p>
  
  <p>I am getting the same error if I try to use <code>-l dbodbc</code> instead of <code>-l pq</code>.</p>
  
  <p>Note that <code>test.c</code> is a simple hello world program.</p>
  
  <p>Thanks in Advance.</p>