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" Subject: Fwd: Re: Problem Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=====================_379655==_" 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
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 response. (??? Maybe he's vacationing, ill, ... ???)

I hesitate to bother you, but I've tried in vain to solve myself (read everything I can find, experimented, etc.)

I should most appreciate any help you will offer.

            &= nbsp;   ******************************************************
"Guten Tag, Herr H=F6hne:

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?

Attempting to compile and link a simple little c++ program (attached ... 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 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 command line:
            &nbs= p;  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 memory.

I recently downloaded djgpp203b, gcc31b, gpp31b, your 1.4.9, and Pavenis' 1.4.9.1 modification.
Both versions of RHIDE behave the same.

I shall most appreciate your comments.

Danke Sch=F6n."

--=====================_379673==_.ALT-- --=====================_379655==_ Content-Type: text/plain; charset="us-ascii" // Calculate Leap Year // JE Fagel May 24, 2002 # include 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==_--