delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/01/23/09:45:45

From: ams AT ludd DOT luth DOT se (Martin Str|mberg)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: undefined reference
Date: 23 Jan 1999 11:36:32 GMT
Organization: University of Lulea, Sweden
Lines: 30
Message-ID: <78cc80$3i8$1@news.luth.se>
References: <36A93EED DOT 8D6D0549 AT cs DOT ccu DOT edu DOT tw>
NNTP-Posting-Host: queeg.ludd.luth.se
X-Newsreader: TIN [UNIX 1.3 950824BETA PL0]
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

lmc83 (lmc83 AT cs DOT ccu DOT edu DOT tw) wrote:
: Hello,
:     when I linking my program, the linker displays "undefined reference
: to ...",
: but I can sure that the function is really exist in some place. It seems
: that
: DJGPP is a one pass compiler, so that the function referenced by other

I don't think gcc is a one pass compiler, however ...

: must
: be put from behind, but if some library reference with each other, how

... the linker (ld) is.

: to
: deal with it? this problem have keep annoying me very long since the

If liba.a and ligb.a is intertvined like this just give "-la -lb -la"
to the linker. But ...

: module is not always could split clearly, and when this problem appear,

... if this is the case then I don't think the code ought to be split
- seems like a design problem.


Genesis, A Trick of the Tail,

							MartinS

- Raw text -


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