Mail Archives: djgpp/2002/05/28/14:57:25
Message-ID: | <003001c20678$c70dae80$0f22fe91@stsohst>
|
From: | "Stefan Sohst" <info AT buch-work-shop DOT de>
|
To: | <djgpp AT delorie DOT com>
|
Subject: | Problems with make exe
|
Date: | Tue, 28 May 2002 20:52:05 +0200
|
MIME-Version: | 1.0
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Mailer: | Microsoft Outlook Express 6.00.2600.0000
|
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000
|
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 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
Can you 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 <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;
}
- Raw text -