From: Charles Terry Newsgroups: comp.os.msdos.djgpp Subject: Re: Unresolved externals Date: Thu, 16 Apr 1998 08:33:33 -0700 Organization: All USENET -- http://www.Supernews.com Lines: 32 Message-ID: <353624CC.670E@plinet.com> References: <353331B2 DOT 6BCE0748 AT earthlink DOT net> <353360B6 DOT 696C AT plinet DOT com> <01bd682a$98126760$6248a5c6 AT technoid> NNTP-Posting-Host: 19873 AT 207 DOT 174 DOT 3 DOT 194 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Well Lukes reply forced me to test it. Opened a project in rhide containing two source files, main.c test.c. /******main.c******/ int main(){ return 0;} /*******test.c********/ int nofunc(); /* declaration of nonexistent function*/ int testfunc(){ return nofunc();/* this is unresolved*/ } both files compile fine but on the link I get a unresolved external in func testfunc: int nofunc not found. So even though there is no calling thread from main to testfunc, since nofunc is include in the link in an .o file the linker insists on resolving it. I think I stand Uncorrected. Charles Terry