title: make command gives Incompatible i386 architecture(i386x86-64)
body: <p>Im having trouble using my make file for a program i am writing in a linux environment. The program is a fern fractal that uses bitmapImage.h and bitmapImage.so given to me by my professor. Whenever i attempt to run the make file i get a long string of errors, the main one being : </p>
  
  <pre><code>    make
  g++    -c -o fern.o fern.cpp
  g++    -c -o fernType.o fernType.cpp
  g++ -m32 -o fern fern.o fernType.o bitmapImage.so
  /usr/bin/ld: cannot find crt1.o: No such file or directory
  /usr/bin/ld: cannot find crti.o: No such file or directory
  /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++.so when searching for -lstdc++
  /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/libstdc++.a when searching for -lstdc++
  /usr/bin/ld: cannot find -lstdc++
  /usr/bin/ld: cannot find -lm
  /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/libgcc_s.so when searching for -lgcc_s
  /usr/bin/ld: cannot find -lgcc_s
  /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/libgcc.a when searching for -lgcc
  /usr/bin/ld: cannot find -lgcc
  /usr/bin/ld: cannot find -lc
  /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/libgcc_s.so when searching for -lgcc_s
  /usr/bin/ld: cannot find -lgcc_s
  /usr/bin/ld: skipping incompatible /usr/lib/gcc/x86_64-linux-gnu/4.6/libgcc.a when searching for -lgcc
  /usr/bin/ld: cannot find -lgcc
  /usr/bin/ld: cannot find crtn.o: No such file or directory
  collect2: ld returned 1 exit status
  make: *** [spiro] Error 1
  </code></pre>
  
  <p><em>my guess is that the bitmapImage.so is designed for a 32 bit system, but my virtual machine ubuntu runs 64-bit. How do i go about fixing this so i can compile my program? Thanks!</em></p>
  
  <p>EDIT: updated my old post to show the current error i am getting</p>
  
  <p>MakeFile:</p>
  
  <pre><code># Make file for spirograph program
  
  ## note, uses bitmapImage shared object file (library).
  
  OBJS = fern.o fernType.o
  CC  = g++ -m32
  DEPS1 = fernType.h
  DEPS2 = bitmapImage.h
  
  all: spiro
  
  spiro: $(OBJS)
      $(CC) -m32 -o fern $(OBJS) bitmapImage.so
  
  spiro.o:    fern.cpp $(DEPS1)
      $(CC) -m32 -c fern.cpp
  
  spiroType.o:    fernType.cpp $(DEPS1) $(DEPS2)
      $(CC) -m32 -c fernType.cpp
  
  # -----
  # clean by removing object files.
  
  clean:
      rm  $(OBJS)
  </code></pre>