www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/28/20:32:32

Xref: news2.mv.net comp.os.msdos.djgpp:4311
From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Linking problem
Date: 28 May 1996 10:44:59 GMT
Organization: The National Capital FreeNet
Lines: 36
Sender: ao950 AT freenet5 DOT carleton DOT ca (Paul Derbyshire)
Message-ID: <4oelfb$5oe@freenet-news.carleton.ca>
References: <31AA02D7 DOT F99 AT interaccess DOT com>
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
NNTP-Posting-Host: freenet5.carleton.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019