From: Simon Owen Newsgroups: comp.os.msdos.djgpp Subject: Re: Sample program Message-ID: <535sgukparov2914an81gtguukc0p4luck@4ax.com> References: X-Newsreader: Forte Agent 1.91/32.564 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 10 X-Complaints-To: abuse AT easynews DOT com Organization: EasyNews, UseNet made Easy! - Test our service with our FREE trial at https://www.easynews.com/trial/trial.phtml X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly. Date: Mon, 17 Jun 2002 16:56:17 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Mon, 17 Jun 2002 16:30:41 +0200, "jakub" wrote: >c++locale.o(135) Error: undefined reference to `_finite' >Error: collect2: ld returned 1 exit status Try changing the order of libraries for the linking stage, so -lstdcxx comes first (or certainly before -lm, if you use that). That seemed to fix it for me anyway. Si