Mail Archives: djgpp/2003/07/10/14:30:03
#include <iostream>
int main() {
std::cout << "Hello, world!\n";
}
If I try to compile this with "gxx -ansi", I get a lot of errors in
the system libraries.
In file included from D:/DJGPP/lang/cxx/3.3/bits/locale_facets.tcc:41,
from D:/DJGPP/lang/cxx/3.3/locale:47,
from D:/DJGPP/lang/cxx/3.3/bits/ostream.tcc:37,
from D:/DJGPP/lang/cxx/3.3/ostream:535,
from D:/DJGPP/lang/cxx/3.3/iostream:45,
from test.cpp:1:
D:/DJGPP/lang/cxx/3.3/cmath:107: error: `acosf' not declared
D:/DJGPP/lang/cxx/3.3/cmath:110: error: `asinf' not declared
D:/DJGPP/lang/cxx/3.3/cmath:113: error: `atanf' not declared
etc.
D:/DJGPP/lang/cxx/3.3/cmath:184: error: `acosf' undeclared in
namespace `
__gnu_cxx::__c99_binding'
D:/DJGPP/lang/cxx/3.3/cmath: In function `float std::asin(float)':
D:/DJGPP/lang/cxx/3.3/cmath:204: error: `asinf' undeclared in
namespace `
__gnu_cxx::__c99_binding'
D:/DJGPP/lang/cxx/3.3/cmath: In function `float std::atan(float)':
D:/DJGPP/lang/cxx/3.3/cmath:222: error: `atanf' undeclared in
namespace `
__gnu_cxx::__c99_binding'
etc.
This does not happen if I don't use -ansi. How can this be fixed?
--
Eric Schmidt
- Raw text -