Date: Mon, 11 Nov 1996 13:49:38 +0200 (IST) From: Eli Zaretskii To: Kevin Dickerson Cc: djgpp AT delorie DOT com Subject: Re: Linking error In-Reply-To: <3287AF80.3092@phs.mat-su.k12.ak.us> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 ") 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 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