Mail Archives: djgpp/1999/01/22/22:17:02
From: | lmc83 <lmc83 AT cs DOT ccu DOT edu DOT tw>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | undefined reference
|
Date: | 23 Jan 1999 03:13:30 GMT
|
Organization: | SEEDNet News Service
|
Lines: | 20
|
Message-ID: | <36A93EED.8D6D0549@cs.ccu.edu.tw>
|
NNTP-Posting-Host: | aix.trd.iii.org.tw
|
Mime-Version: | 1.0
|
X-Mailer: | Mozilla 4.04 [en] (Win95; I)
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
Reply-To: | djgpp AT delorie DOT com
|
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
must
be put from behind, but if some library reference with each other, how
to
deal with it? this problem have keep annoying me very long since the
module is not always could split clearly, and when this problem appear,
I must try to move the link order of library, sometimes it is very
hardly
to resove the linking problem, I must cost a lot of time to try.
Does any one known how to resove this problem?
Thanks for your help
Liang
Ming-Chung
- Raw text -