delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/30/22:33:05

Xref: news2.mv.net comp.os.msdos.djgpp:4398
From: malcolm AT manawatu DOT gen DOT nz (Malcolm Taylor)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Linking problem
Date: Thu, 30 May 1996 22:00:45 GMT
Organization: Grafik Software
Lines: 21
Message-ID: <4ol9j2$o4@news.manawatu.gen.nz>
References: <31AA02D7 DOT F99 AT interaccess DOT com>
Reply-To: malcolm AT manawatu DOT gen DOT nz
NNTP-Posting-Host: malcolm.manawatu.gen.nz
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Jeff Hawk <jlhawk AT interaccess DOT com> wrote:

>    _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?

These are actually defined in the linker script file in djgpp v2. The
most likely reason for your fault is that you have djgpp v2 installed
over the top of an old djgpp v1.x tree. You'll have the old djgpp.lnk
file in the lib directory instead of the one needed by v2.
Check to make sure that the djgpp.lnk file (in the lib dir) is
correct.

Hope this helps,
Malcolm

- Raw text -


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