From: "Stefan Sohst" Newsgroups: comp.os.msdos.djgpp Subject: Problems with make exe Date: Mon, 27 May 2002 12:56:54 +0200 Organization: Arcor Lines: 68 Message-ID: NNTP-Posting-Host: dialin-145-254-034-166.arcor-ip.net X-Trace: newsread1.arcor-online.net 3968 NG c29oc3Q= X-Complaints-To: abuse AT arcor-online DOT net NNTP-Posting-Date: Mon, 27 May 2002 11:00:39 +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 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. My installationadress under win98 is: C:\DJGPP My workspace I use is: C:\eigene Dateien\c++\GNU\ With rhide I open a file cover.cpp The compilation works out allright. As sonn 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(char const*, float&, std::_IOS_Iostate&, int* const&, int)': Error: collect2: 1d returned 1 exit status Can somebody give me a hint what could be wrong? 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 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; }