www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/11/11/07:04:44

Date: Mon, 11 Nov 1996 13:49:38 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Kevin Dickerson <kevind AT phs DOT mat-su DOT k12 DOT ak DOT us>
Cc: djgpp AT delorie DOT com
Subject: Re: Linking error
In-Reply-To: <3287AF80.3092@phs.mat-su.k12.ak.us>
Message-Id: <Pine.SUN.3.91.961111133511.396G-100000@is>
Mime-Version: 1.0

On Mon, 11 Nov 1996, Kevin Dickerson wrote:

> While Linking any program (to the simplicity of trying to compile a file
> which contains the line "#include <stdio.h>") I recieve the error (and I
> quote):
> 
> "D:\CODE\DJGPP\BIN/ld.exe: warning: cannot find entry symbol start;
> defaulting to 000018a8"

You wanted simplicity, but got yourself into trouble.  Your source 
doesn't have any executable code in it, just declarations.  The minimal 
program is this:

	#include <stdio.h>
	void main (void) {}

Try it (but first correct other problems as mentioned below) and see if 
that works.  If not, you might have RHIDE-related problem.  Try compiling 
the above program from the command line, like so:

	gcc -Wall -o test test.c

(assuming the above source is in test.c).  If this works, then your 
problem is specific to RHIDE, and somebody else will have to help you (I 
don't use RHIDE).

> and one more question. In the file DJGPP.env, how would I state the path
> name? DJGPP is installed into the dircetory "d:/code/djgpp/", and right
> now the DJDIR variable is set to "DJDIR=%/>CODE/DJGPP%". Please inform
> me if this is correct.

DON'T EDIT DJGPP.ENV!!!

That file is created so that you should not have to change anything in it,
unless you need to add a section for another program.  In particular, DO
NOT, repeat, *DO NOT* touch the definition of DJDIR!  Good Lord, isn't
what the file say clear enough? 

	#= Don't edit this line unless you move djgpp.env outside
	#= of the djgpp installation directory.  If you do move
	#= it, set DJDIR to the directory you installed DJGPP in.
	#=
	DJDIR=%:/>DJGPP%

See?  ``... unless you move djgpp.env outside the djgpp installation
directory''.  Since you don't have to move it, just leave that line alone. 
All you need to do is to define the DJGPP environment variable to point to
that directory, like so: 

	set DJGPP=d:/code/djgpp

- Raw text -


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