Mail Archives: djgpp/2001/02/25/08:43:32
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.
- Raw text -