title: PETSc example not working
body: <p>I have Windows 7 OS. 
  I have followed the instructions from the <a href="http://www.mcs.anl.gov/petsc/documentation/installation.html#windows" rel="nofollow" title="Installation for windows">PETSc web page</a>; in the command prompt of VS 2005 I have opened cygwin and installed PETSc with the command:</p>
  
  <pre><code>./configure --with-cc='win32fe cl' --with-fc=0 --with-mpi=0 --download-f2cblaslapack
  </code></pre>
  
  <p>I tried to run the following example from the web page:</p>
  
  <pre><code>cd src/ksp/ksp/examples/tutorials
  
  make ex2
  </code></pre>
  
  <p>the ex2.c is a c program code. I get the following error:</p>
  
  <pre><code>$ make ex2
  
  makefile:18: /conf/variables: No such file or directory
  
  makefile:19: /conf/rules: No such file or directory
  
  makefile:1151: /conf/test: No such file or directory
  
  make: *** No rule to make target `/conf/test'.  Stop.
  </code></pre>
  
  <p>What is causing this?</p>
  
  <p>(and more importantly) 
  How do I fix it?</p>
  
  <p>*edit: I could use a general answer as well, because at the moment I don't really even know what to Google for and I don't feel like just contacting PETSc support for everything.</p>
  
  <hr>
  
  <p>I've decided to work on Ubuntu. So now, here s the deal. After installation I write:</p>
  
  <blockquote>
    <p>gcc -I$PETSC_DIR/include -L$PETSC_DIR/$PETSC_ARCH/lib -libpetsc ex2</p>
  </blockquote>
  
  <p>in command line. I get the erros massage:</p>
  
  <blockquote>
    <p>/usr/bin/ld: cannot find -libpetsc
    ex2: In function <code>_start':
    (.text+0x1bc4): multiple definition of</code>_start'
    /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o:(.text+0x0): first defined here
    ex2: In function <code>_fini':
    (.fini+0x0): multiple definition of</code>_fini'
    /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crti.o:(.fini+0x0): first defined here
    ex2:(.rodata+0x0): multiple definition of <code>_IO_stdin_used'
    /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o:(.rodata.cst4+0x0): first defined here
    ex2: In function</code>__data_start':
    (.data+0x0): multiple definition of <code>__data_start'
    /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crt1.o:(.data+0x0): first defined here
    ex2: In function</code>__data_start':
    (.data+0x8): multiple definition of <code>__dso_handle'
    /usr/lib/gcc/x86_64-linux-gnu/4.6/crtbegin.o:(.data+0x0): first defined here
    ex2: In function</code>_init':
    (.init+0x0): multiple definition of `_init'
    /usr/lib/gcc/x86_64-linux-gnu/4.6/../../../x86_64-linux-gnu/crti.o:(.init+0x0): first defined here
    collect2: ld returned 1 exit status</p>
  </blockquote>