delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/06/04/13:55:03

Message-Id: <4.3.2.7.2.20020604132310.00a966e0@mail.localnet.com>
X-Sender: jefagel AT mail DOT localnet DOT com
X-Mailer: QUALCOMM Windows Eudora Version 4.3.2
Date: Tue, 04 Jun 2002 13:27:04 -0400
To: djgpp AT delorie DOT com
From: "John E. Fagel" <jefagel AT localnet DOT com>
Subject: Fwd: Re: Problem
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com

--=====================_379655==_
Content-Type: multipart/alternative;
	boundary="=====================_379673==_.ALT"

--=====================_379673==_.ALT
Content-Type: text/plain; charset="iso-8859-1"; format=flowed
Content-Transfer-Encoding: quoted-printable


>Please excuse the intrusion; I'm stuck, and need some help.
>
>I sent the below e-mail to Hoehner a couple of weeks ago, but have had no=
=20
>response. (??? Maybe he's vacationing, ill, ... ???)
>
>I hesitate to bother you, but I've tried in vain to solve myself (read=20
>everything I can find, experimented, etc.)
>
>I should most appreciate any help you will offer.
>
>                 ******************************************************
>"Guten Tag, Herr H=F6hne:
>
>I am sorry to bother you with an (apparently ?) trivial problem, but I=20
>cannot figure out what I'm doing wrong. Bitte sch=F6n ... help?
>
>Attempting to compile and link a simple little c++ program (attached ...=20
>it's only 568 bytes), I get the following error message:
>
>"Error: j:/djgpp/lib/gcc-lib/djgpp/3.1//libstdcxx.a(c++locale.o): In=20
>function c++locale.o(135)
>Error: undefined reference to '_finite'
>Error: collect2: ld returned 1 exit status
>There were some errors"
>
>         The program does compile, link, and run just fine (AOK) with=20
> command line:
>                j:/djgpp/bin/ gxx -Wall -o leapyear.exe leapyear.cpp
>
>I am a newcomer to djgpp and to rhide, and am running Windows98 with 256M=
=20
>memory.
>
>I recently downloaded djgpp203b, gcc31b, gpp31b, your 1.4.9, and Pavenis'=
=20
>1.4.9.1 modification.
>Both versions of RHIDE behave the same.
>
>I shall most appreciate your comments.
>
>Danke Sch=F6n."
>

--=====================_379673==_.ALT
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<html>
<blockquote type=3Dcite cite>Please excuse the intrusion; I'm stuck, and
need some help.<br>
<br>
I sent the below e-mail to Hoehner a couple of weeks ago, but have had no
response. (??? Maybe he's vacationing, ill, ... ???)<br>
<br>
I hesitate to bother you, but I've tried in vain to solve myself (read
everything I can find, experimented, etc.) <br>
<br>
I should most appreciate any help you will offer.<br>
<br>
<i>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;
******************************************************<br>
&quot;Guten Tag, Herr H=F6hne:<br>
<br>
I am sorry to bother you with an (apparently ?) trivial problem, but I
cannot figure out what I'm doing wrong. Bitte sch=F6n ... help?<br>
<br>
Attempting to compile and link a simple little c++ program (attached ...
it's only 568 bytes), I get the following error message:<br>
<br>
&quot;Error: j:/djgpp/lib/gcc-lib/djgpp/3.1//libstdcxx.a(c++locale.o): In
function c++locale.o(135) <br>
Error: undefined reference to '_finite'<br>
Error: collect2: ld returned 1 exit status<br>
There were some errors&quot;<br>
<br>
<b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; The program does compile,
link, and run just fine (AOK) with command line:<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;
j:/djgpp/bin/ gxx -Wall -o leapyear.exe leapyear.cpp<br>
<br>
</b>I am a newcomer to djgpp and to rhide, and am running Windows98 with
256M memory.<br>
<br>
I recently downloaded djgpp203b, gcc31b, gpp31b, your 1.4.9, and Pavenis'
1.4.9.1 modification.<br>
Both versions of RHIDE behave the same. <br>
<br>
I shall most appreciate your comments.<br>
<br>
Danke Sch=F6n.&quot;<br>
<br>
</i></blockquote></html>

--=====================_379673==_.ALT--

--=====================_379655==_
Content-Type: text/plain; charset="us-ascii"

// Calculate Leap Year
// JE Fagel   May 24, 2002

# include <iostream>
using namespace std;

int
main()

{

int year;

skip: while (year)

{
 cout << "Enter a year (0 to quit) ?\t";
 cin >> year;
 if (year==0)
   {
    cout << "That's all folks!\n";
    exit(0);
    }

if (year&1 == 1)
  {
   cout << "Odd year; NOT a leap year\n\n";
   goto skip;
   }
  if ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0)
    cout << year << " IS a Leap Year\n\n";
    else
      cout << year << " is NOT a Leap Year\n\n";
      }
    }


--=====================_379655==_--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019