cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/12/22:58:10

From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: GCC question
Date: Tue, 12 Aug 1997 20:43:00 +0000
Organization: Two pounds of chaos and a pinch of salt
Lines: 57
Message-ID: <33F0CAD4.6E37@cs.com>
References: <19970728213301 DOT RAA24433 AT ladder01 DOT news DOT aol DOT com>
Reply-To: fighteer AT cs DOT com
NNTP-Posting-Host: ppp105.cs.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Lovecraft wrote:
> 
> After the last responses I hesitate to ask but:
> 
> I keep getting this message no matter what I type( i.e. gcc -o first.c
> first.exe and various other syntaxes referred to in various documentation)
> , based of course on all the documentation which I've read, when trying to
> compile a simple prgram to see if it works:

Try 'gcc -o first.exe first.c'.  Your example command line attempts to
compile an executable file and output a source file.  :)

> ld.exe: cannot open crt0.o: no such file or directory (ENOENT)

If you have in fact set your environment correctly, then there's no
other reason to be getting this error.  Can you look in chapter 6 of the
FAQ to see if any of the information there solves your problem?  If it
doesn't, look in chapter 6.12 for the correct format for posting
detailed information to the newsgroup about your problem.  In short, we
would like to see:

- Your config.sys and autoexec.bat.
- The contents of your environment, as reported by 'set'.
- Your 'djgpp.env' file.
- The output of the 'go32-v2' program.
- The exact command line you use to compile.
- The output of the compilation of your program, adding the '-v' switch
to the command line (gcc -v -o first.exe first.c).

You can use the 'redir' program to capture the stderr output of DJGPP
programs, as follows:

  redir -o gcc.log -eo gcc -v -o first.exe first.c

The file 'gcc.log' will contain the text of the compilation session.

You are also invited to try my DJVERIFY program, available from
ftp://ftp.delorie.com/pub/djgpp/alpha/vrfy033a.zip.  If you'd like to
try a more recent version that's still in development, email me.

> I really don't understand a lot of "compiler" concepts such as libraries,
> linking, etc. There are massive docs and a totally new browser for me to
> learn (info.exe) and all I want to do right now is see what C programming
> is all about, i.e. the language.

There is an excellent "dictionary" of common DJGPP terminology at
http://www.delorie.com/djgpp/doc/lexicon/.

hth!

-- 
---------------------------------------------------------------------
|      John M. Aldrich       | "Sin lies only in hurting other      |
|       aka Fighteer I       | people unnecessarily.  All other     |
|   mailto:fighteer AT cs DOT com   | 'sins' are invented nonsense."       |
| http://www.cs.com/fighteer |                 - Lazarus Long       |
---------------------------------------------------------------------

- Raw text -


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