From: beppu AT rigel DOT oac DOT uci DOT edu (John Beppu) Newsgroups: comp.os.msdos.djgpp Subject: Re: [Q] why would this error occur? undefined reference to terminate(void) Date: 23 Feb 1997 04:21:16 GMT Organization: University of California, Irvine Lines: 16 Message-ID: <5eogjs$cav@news.service.uci.edu> References: NNTP-Posting-Host: rigel.oac.uci.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp In article , Michael Phelps wrote: >Try linking in the libraries at the end of the command line: > gcc -O2 -fhandle-exceptions -fomit-frame-pointer -fforce-addr > main.o subst.o -o main -lgpp -lm > >The order (and existance!) of libraries for linking is usually the reason >for underfined reference errors. > That did it. thankyouthankyouthankyouthankyouthankyouthankyouthankyou thankyouthankyouthankyouthankyouthankyouthankyouthankyouthankyou... etc. -- beppu AT uci DOT edu .............................................................