Mail Archives: djgpp/1996/05/28/20:32:32
Jeff Hawk (jlhawk AT interaccess DOT com) writes:
> When I try to compile this:
>
> #include <stdio.h>
>
> void main(void)
> {
> printf("Hello\n");
> }
>
> I get this:
>
> _main.c(.text+0x1a): undefined reference to `djgpp_last_ctor'
> _main.c(.text+0x1f): undefined reference to `djgpp_first_ctor'
> _main.c(.text+0x2f): undefined reference to `djgpp_first_ctor'
> exit.c(.text+0x29): undefined reference to `djgpp_last_dtor'
> exit.c(.text+0x2e): undefined reference to `djgpp_first_dtor'
> exit.c(.text+0x3f): undefined reference to `djgpp_first_dtor'
>
> Any idea why?
>
> Thanks,
> Jeff
You must be missing a vital file from the distribution. Make sure all the
things in /lib are where they belong. Also make sure you have your
environment variable pointing at DJGPP.ENV, see the FAQ for details, and
make sure DJGPP.ENV has the library pat set right.
--
.*. "Clouds are not spheres, mountains are not cones, coastlines are not
-() < circles, and bark is not smooth, nor does lightning travel in a
`*' straight line." ,------------------------------------------------
-- B. Mandelbrot | Paul Derbyshire (PGD) ao950 AT freenet DOT carleton DOT ca
- Raw text -