delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/07/21/14:54:15

Message-ID: <3D3B033D.7030403@dir.bg>
Date: Sun, 21 Jul 2002 21:53:49 +0300
From: Jordan Gordeev <jgordeev AT dir DOT bg>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.0) Gecko/20020530
X-Accept-Language: bg, en
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Bug in DJGPP 2.03 (with GCC 3.1)
Reply-To: djgpp-workers AT delorie DOT com

This is a multi-part message in MIME format.
--------------020801080905070601010305
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

  I have a problem when compiling a C++ program which includes 
<iostream> in -ansi mode.
The attached files demo.cpp and demo.err demonstrate the bug.
I think the problem is caused by the new header files.
I don't have such a problem with DJGPP 2.03 (with GCC 2.953).




--------------020801080905070601010305
Content-Type: text/plain;
 name="demo.cpp"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="demo.cpp"

#include <iostream>

using namespace std;

int main() {
	cout << "Hello World" << endl;
	return 0;
}



--------------020801080905070601010305
Content-Type: text/plain;
 name="demo.err"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="demo.err"

In file included from c:/djgpp/lang/cxx-v31/bits/locale_facets.tcc:41,
                 from c:/djgpp/lang/cxx-v31/locale:46,
                 from c:/djgpp/lang/cxx-v31/bits/ostream.tcc:37,
                 from c:/djgpp/lang/cxx-v31/ostream:275,
                 from c:/djgpp/lang/cxx-v31/iostream:45,
                 from demo.cpp:1:
c:/djgpp/lang/cxx-v31/cmath: In function `float std::acos(float)':
c:/djgpp/lang/cxx-v31/cmath:106: `::acosf' undeclared (first use here)
c:/djgpp/lang/cxx-v31/cmath: In function `float std::asin(float)':
c:/djgpp/lang/cxx-v31/cmath:126: `::asinf' undeclared (first use here)
c:/djgpp/lang/cxx-v31/cmath: In function `float std::atan(float)':
c:/djgpp/lang/cxx-v31/cmath:144: `::atanf' undeclared (first use here)
c:/djgpp/lang/cxx-v31/cmath: In function `float std::atan2(float, float)':
c:/djgpp/lang/cxx-v31/cmath:162: `::atan2f' undeclared (first use here)
c:/djgpp/lang/cxx-v31/cmath: In function `float std::ceil(float)':
c:/djgpp/lang/cxx-v31/cmath:182: `::ceilf' undeclared (first use here)
c:/djgpp/lang/cxx-v31/cmath: In function `float std::cosh(float)':
c:/djgpp/lang/cxx-v31/cmath:210: `::coshf' undeclared (first use here)
c:/djgpp/lang/cxx-v31/cmath: In function `float std::exp(float)':
c:/djgpp/lang/cxx-v31/cmath:228: `::expf' undeclared (first use here)
c:/djgpp/lang/cxx-v31/cmath: In function `float std::floor(float)':
c:/djgpp/lang/cxx-v31/cmath:256: `::floorf' undeclared (first use here)
c:/djgpp/lang/cxx-v31/cmath: In function `float std::fmod(float, float)':
c:/djgpp/lang/cxx-v31/cmath:274: `::fmodf' undeclared (first use here)
c:/djgpp/lang/cxx-v31/cmath: In function `float std::frexp(float, int*)':
c:/djgpp/lang/cxx-v31/cmath:294: `::frexpf' undeclared (first use here)
c:/djgpp/lang/cxx-v31/cmath: In function `float std::ldexp(float, int)':
c:/djgpp/lang/cxx-v31/cmath:313: `::ldexpf' undeclared (first use here)
c:/djgpp/lang/cxx-v31/cmath: In function `float std::log(float)':
c:/djgpp/lang/cxx-v31/cmath:333: `::logf' undeclared (first use here)
c:/djgpp/lang/cxx-v31/cmath: In function `float std::log10(float)':
c:/djgpp/lang/cxx-v31/cmath:351: `::log10f' undeclared (first use here)
c:/djgpp/lang/cxx-v31/cmath: In function `float std::modf(float, float*)':
c:/djgpp/lang/cxx-v31/cmath:369: `::modff' undeclared (first use here)
c:/djgpp/lang/cxx-v31/cmath: In function `long double std::modf(long double, 
   long double*)':
c:/djgpp/lang/cxx-v31/cmath:383: `::modfl' undeclared (first use here)
c:/djgpp/lang/cxx-v31/cmath: In function `float std::pow(float, float)':
c:/djgpp/lang/cxx-v31/cmath:408: `::powf' undeclared (first use here)
c:/djgpp/lang/cxx-v31/cmath: In function `float std::sinh(float)':
c:/djgpp/lang/cxx-v31/cmath:450: `::sinhf' undeclared (first use here)
c:/djgpp/lang/cxx-v31/cmath: In function `float std::tan(float)':
c:/djgpp/lang/cxx-v31/cmath:478: `::tanf' undeclared (first use here)
c:/djgpp/lang/cxx-v31/cmath: In function `float std::tanh(float)':
c:/djgpp/lang/cxx-v31/cmath:496: `::tanhf' undeclared (first use here)


--------------020801080905070601010305--


- Raw text -


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