www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/24/19:57:11

Date: Wed, 24 Sep 1997 16:56:36 -0700 (PDT)
Message-Id: <199709242356.QAA22542@adit.ap.net>
Mime-Version: 1.0
To: sbattle AT agora DOT rdrop DOT com (Susan Battle), djgpp AT delorie DOT com
From: Nate Eldredge <eldredge AT ap DOT net>
Subject: Re: please help me with compiling :)

At 02:03  9/23/1997 GMT, Susan Battle wrote:
>When I compile my program using gcc like this, gcc program.c, I get the
>following error message. ld.exe: cannot open -lgcc: File in wrong format.
>Every single time I try to compile a program, any program. So please if
>you know whats wrong can you help me.
>What is the exact way to go about compiling a file, or especially a .s
>file. Thank :)
Jeez! If we ever find a common cause between all of these, maybe it should
be an FAQ.

Make sure of the following:
- The file libgcc.a in the lib subdirectory is the one from the standard
DJGPP distribution.
- Your ld.exe in the bin subdirectory is the one from the standard DJGPP
distribution.
- You don't have any other "ld"'s along your PATH.
- You don't have any viruses or anything.
- Your DJGPP and PATH environment variables are set correctly, per README.1ST.

If all those are correct, and it still doesn't work, post the output of this
command:
gcc -v -Xlinker --verbose program.c

Perhaps that will yield some insights to us here.

Nate Eldredge
eldredge AT ap DOT net



- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019