delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/28/04:26:47

Xref: news2.mv.net comp.os.msdos.djgpp:4290
From: Jeff Hawk <jlhawk AT interaccess DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Linking problem
Date: Mon, 27 May 1996 14:30:31 -0500
Organization: InterAccess, Chicagoland's Full-Service Internet Provider
Lines: 22
Message-ID: <31AA02D7.F99@interaccess.com>
NNTP-Posting-Host: d129.w.interaccess.com
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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

- Raw text -


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