delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/05/29/04:28:12

From: "Stefan Sohst" <info AT buch-work-shop DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: problems with make exe
Date: Wed, 29 May 2002 09:09:35 +0200
Organization: Arcor
Lines: 116
Message-ID: <ad1v09$2so$1@newsread1.arcor-online.net>
References: <acvakt$2mi$1 AT newsread1 DOT arcor-online DOT net> <3CF3D7AE DOT 9E255532 AT phekda DOT freeserve DOT co DOT uk>
NNTP-Posting-Host: dialin-145-254-038-049.arcor-ip.net
X-Trace: newsread1.arcor-online.net 2968 NG c29oc3Q=
X-Complaints-To: abuse AT arcor-online DOT net
NNTP-Posting-Date: Wed, 29 May 2002 07:12:09 +0000 (UTC)
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
X-Priority: 3
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MSMail-Priority: Normal
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com


--
Dear Richard,
"Richard Dawe" <rich AT phekda DOT freeserve DOT co DOT uk> schrieb im Newsbeitrag
news:3CF3D7AE DOT 9E255532 AT phekda DOT freeserve DOT co DOT uk...
> Hello.
>
> Stefan Sohst wrote:
> >
> > Hi friends,
> > I downloaded djgpp and installed everything like written in
readme.1st.
> > To check, everything is working, I compiled a very simple
> > sample-porgramm which works well in an Author-Version of visual C++.
So
> > I suppose that my problems are rather an installation Problem, than
one
> > of the Program.
>
> This problem should be posted in comp.os.msdos.djgpp rather than
gnu.gcc. I've
> directed my reply there.
>
> > My installationadress under win98 is:
> > C:\DJGPP
> > My workspace I use is:
> > C:\eigene Dateien\c++\GNU\
> >
> > With rhide 1.4.9 I open a file cover.cpp
> > The compilation works out allright.
> > As soon as the exe-file shall be produces I get the follwing Error:
> >
> > Error: c:/djgpp/lib/gcc-lib/djgpp/3.1/libstdcxx.a(c++locale.o): In
> > function 'void std::__convert_to_v<float>(char const*, float&,
> > std::_IOS_Iostate&, int* const&, int)':
> > Error: collect2: 1d returned 1 exit status
>
> This error message looks too short. Did it really display nothing
between
> 'Error: c:/djgpp...' and 'Error: collect2...'?

sorry, there is another line inbetween:
c++locale.o(135) Error: undefined reference to '_finite'

>
> > Can you give me a hint what could be wrong?
>
> Which version of gcc & g++ are you using? This should display it:
>
>     g++ --version

I used gcc31b.zip and gpp31b.zip for installation -- should be gc and
g++ 3.1
May be this is of interest: during installation of gpp31b.zip I was
asked whether I want to overwrite some files or not and I tried both,
leaving the files and overwriting the files.

thank you very much
Stefan Sohst

>
> Your C++ program looks fine to me. I'm not sure if "using namespace
std;"
> works with g++ < 3, though.
>
> > For your information I put the cpp-code to the end of this document.
> >
> > Many Thanks
> > Liebe Grüße
> >
> > Stefan Sohst
> > Sohst-Marketing
> > Rehrstieg 91
> > 21147 Hamburg
> > Telefon: 040 24183463
> > Fax      : 040 24183 462
> >
> > The code:
> > //
> > // Programm konvertiert Temperaturen in Grad Celsius
> > // to nach Grad Fahrenheit
> > // Fahrenheit = Celsius  * (212 - 32)/100 + 32
> > #include <iostream>
> > using namespace std;
> >
> > int main(int nNumberofArgs, char* pszArgs[])
> > {
> >     // Eingabe der Temperatur in Grad Celsius
> >     int nCelsius;
> >     cout << "Temperatur in Grad Celsius:";
> >     cin >> nCelsius;
> >
> >     // berechne Umrechnungsfaktor von Celsius
> >     // nach Fahrenheit
> >     int nFactor;
> >     nFactor = 212 - 32;
> >
> >     // verwende Umrechnungsfaktor zur Konvertierung
> >     // von Celsius in Fahrenheit
> >     int nFahrenheit;
> >     nFahrenheit = nFactor * nCelsius/100 + 32;
> >
> >     // Ausgabe des Ergebnisses
> >     cout << "Fahrenheit Wert ist:";
> >     cout << nFahrenheit;
> >
> >     return 0;
> > }
>
> Regards,
>
> --
> Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]


- Raw text -


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