www.delorie.com/archives/browse.cgi | search |
From: | James W Sager Iii <sager+@andrew.cmu.edu> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: DPMI erroes.... multiple instances of _exit |
Date: | Tue, 7 Apr 1998 08:57:35 -0400 |
Organization: | Junior, MCS Undeclared, Carnegie Mellon, Pittsburgh, PA |
Lines: | 22 |
Message-ID: | <kp_W_z_00YUq06Nm00@andrew.cmu.edu> |
References: | <1998040509161101 DOT FAA21113 AT ladder03 DOT news DOT aol DOT com> |
NNTP-Posting-Host: | po6.andrew.cmu.edu |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Excerpts from netnews.comp.os.msdos.djgpp: 5-Apr-98 DPMI erroes.... multiple in.. by SandWzzrd AT aol DOT com > C:\cpp\GNU\guess-v.1>gcc guess.c -o guess2.exe > d:/djgpp/lib/libc.a(dpmiexcp.o)(.text+0xbdc):dpmiexcp.c: multiple definition > `_exit' > d:/djgpp/lib/crt0.o(.text+0x1c8):crt0.s: first defined here > d:/djgpp/lib/libc.a(dpmiexcp.o)(.text+0xc04):dpmiexcp.c: undefined reference > `__exit' > _exit is different than __exit The problem with the multiple declaration is probably due to you not setting a variable extern in your header file and defining it only once elsewhere. -James Please visit Intergalactic Bounty Hunter's web site and tell me what you think: http://www.contrib.andrew.cmu.edu/~sager/ibh/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |