delorie.com/archives/browse.cgi | search |
From: | Charles Terry <cterry AT plinet DOT com> |
Newsgroups: | comp.os.msdos.djgpp |
Subject: | Re: HELP! LD doesn't warn me about unresolved externals! |
Date: | Sat, 04 Apr 1998 17:46:29 -0800 |
Organization: | All USENET -- http://www.Supernews.com |
Lines: | 28 |
Message-ID: | <3526E275.6EB2@plinet.com> |
References: | <1998040419490401 DOT OAA29622 AT ladder03 DOT news DOT aol DOT com> |
NNTP-Posting-Host: | 17038 AT 207 DOT 174 DOT 3 DOT 141 |
Mime-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
Joshua Hab wrote: > > For some reason, ld allows me to link and builds exe files even if there are > unresolved externals! When the program is run, it crashes whenever it tries to > execute an undefined subroutine! > > How can I get it to warn me when I forget to link a library or include an > object file? I'm not really a bettin man but I would bet my firstborn that the cause of the crash is not unresolved externals. (unless you've gotten ahold of an alpha version) The only thing close to that that might happen is in C++ with virtual functions in Inherited classes getting scrambled. I don't even remember exactly how that can happen but I've seen an explanation at some point. Information needed is what flavor of crash - SIGSEGV, lockup reboot? If it's a SIGSEGV (you may already know this) type symnify 'myprog.exe' while the stack dump information is still on the screen to get a printout of what functions were called to lead to the crash. Charles
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |