Date: Sun, 25 Feb 2001 15:35:04 +0200 (IST) From: Eli Zaretskii X-Sender: eliz AT is To: Luis Hernandez cc: djgpp AT delorie DOT com Subject: Re: I know this is a faq In-Reply-To: <200102251250.HAA02996@math48.math.gatech.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sun, 25 Feb 2001, Luis Hernandez wrote: > bnu2951[ab] The latest Binutils is bnu210b.zip (although I don't think your problem is due to this). > But, no matter the procedure used to install the packages, I ended up > facing the very same problem: undefined reference to __dj_stderr' (... > among other similar problems). This means that you are linking objects some of which were compiled with the old headers from djdevNNN.zip that is older than djdev203.zip. > To test my installation I installed djtst203 etc, to run the tests... djtst203.zip is not for testing the installation, it is for testing the library. A ``normal'' user will never need it, only people who work on developing the library. Also, the procedure for running the tests is far from being simple, so I don't recommend to try. > So I installed hello13 and make3791b, thinking that I was doing > something wrong (I still know I did something wrong, but can not see > what). After changing directories to /djgpp/gnu/hello-1.3/, this is what > I got when tried to 'make' the hello world program: > > C:\djgpp\gnu\hello-1.3>make > gcc -g -o hello hello.o version.o getopt.o getopt1.o > hello.o: In function main': > hello.c:124: undefined reference to __dj_stderr' Did you compile hello.c into hello.o with the new headers, i.e. after installing djdev203? If not, delete hello.o (and all the other *.o files) and rebuild the program. If these *.o files were compiled after installing djdev203, you have some installation snafu: the compiler still uses the old headers. Adding -v to the compilation switches might give you a hint about what's wrong.