Thread: compiling error -f68881

  1. #1
    Registered User
    Join Date
    Nov 2010

    compiling error -f68881

    Hi I am trying to compile a c code. I installed the extra x files from the mac install disc. This is my makefile:

    segy2sac: segy2sac.o
    cc -g -f68881 -o segy2sac segy2sac.o
    segy2sac.o: segy2sac.c
    cc -g -f68881 -c segy2sac.c

    and the error that I get is this:

    gcc -g -f68881 -c segy2sac.c
    cc1: error: unrecognized command line option "-f68881"
    make: *** [segy2sac.o] Error 1

    Can anyone tell me what this means and how to fix it? Would really appreciate it!

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    The edge of the known universe
    $ gcc -v
    Using built-in specs.
    Target: i486-linux-gnu
    What does yours say?

    > cc1: error: unrecognized command line option "-f68881"
    The 68881 was the numeric co-processor of the 68K, which was the processor of choice for ancient Mac's.

    Since you probably don't have one of those, perhaps you could just delete "-f68881" from your makefiles.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Linking libraries when compiling with g++ in ubuntu
    By Veni_Vidi_Vici in forum C++ Programming
    Replies: 1
    Last Post: 08-02-2010, 10:01 PM
  2. Compiling errors and using Cmake Set Policy
    By eligor in forum Linux Programming
    Replies: 2
    Last Post: 01-25-2010, 01:43 PM
  3. Problem compiling files that store functions
    By tiachopvutru in forum C++ Programming
    Replies: 10
    Last Post: 05-30-2008, 05:42 PM
  4. Screwy Linker Error - VC2005
    By Tonto in forum C++ Programming
    Replies: 5
    Last Post: 06-19-2007, 02:39 PM
  5. Compiling syntax
    By Jez_Master in forum C++ Programming
    Replies: 3
    Last Post: 04-01-2002, 09:46 PM

Tags for this Thread