Mail Archives: djgpp/1998/02/09/20:02:19
Mike McLean wrote in message <34DF8862 DOT 2B01CF5B AT primenet DOT com>...
>What does undefined reference to terminate(void); mean?
It means that there is a call to an external function, but the linker is
unable to find the definition
in any of the .o or .a files you have told it to look in.
> I am using pgcc 1.01 if this helps.
Dunno. On my machine it appears that terminate is defined in libgcc.a ...
C:\djgpp\lib>nm libgcc.a | grep "T _terminate"
00000000 T _terminate__Fv
Perhaps your link line doesn't include gcc? This would only occur I think
if you were manually
calling ld, instead of having gcc do it, as gcc always links
in -lgcc -lc -lgcc...
HTH
Andy
- Raw text -