compilation with -mno-cygwin

Hans Horn hannes@2horns.com
Tue Apr 13 16:07:00 GMT 2004


I light of the recent gcc performance comparison, I tried to compile a
number crunching application (for which I have noticed a significant
performance degradation of a factor 2-3 since the days of gcc2.9.x) using
the -mno-cygwin flag.
I get a shitload of crap like the following :

g++ -c -mno-cygwin -ansi -DGCC3X -DLINUX -DINLINE=inline -fno-default-inline
 -W -Wno-deprecated -fomit-frame-pointer -ffast-math -mcpu=pentium4 -march=p
entium4 -mfpmath=sse -O2 -I./ -o xyz.o xyz.cpp
In file included from /usr/include/c++/3.3.1/bits/locale_facets.tcc:41,
                 from /usr/include/c++/3.3.1/locale:47,
                 from /usr/include/c++/3.3.1/bits/ostream.tcc:37,
                 from /usr/include/c++/3.3.1/ostream:535,
                 from /usr/include/c++/3.3.1/iostream:45,
                 from /usr/include/c++/3.3.1/backward/iostream.h:32,
                 from /usr/include/c++/3.3.1/backward/stream.h:32,
                 from xyz.cpp:5:
/usr/include/c++/3.3.1/cmath:107: error: `acosf' not declared
/usr/include/c++/3.3.1/cmath:110: error: `asinf' not declared
/usr/include/c++/3.3.1/cmath:113: error: `atanf' not declared
/usr/include/c++/3.3.1/cmath:116: error: `atan2f' not declared
/usr/include/c++/3.3.1/cmath:119: error: `ceilf' not declared
/usr/include/c++/3.3.1/cmath:122: error: `coshf' not declared
/usr/include/c++/3.3.1/cmath:125: error: `expf' not declared
/usr/include/c++/3.3.1/cmath:128: error: `floorf' not declared
/usr/include/c++/3.3.1/cmath:131: error: `fmodf' not declared
/usr/include/c++/3.3.1/cmath:134: error: `frexpf' not declared
/usr/include/c++/3.3.1/cmath:137: error: `ldexpf' not declared
/usr/include/c++/3.3.1/cmath:140: error: `logf' not declared
/usr/include/c++/3.3.1/cmath:143: error: `log10f' not declared
/usr/include/c++/3.3.1/cmath:146: error: `modff' not declared
/usr/include/c++/3.3.1/cmath:149: error: `powf' not declared
/usr/include/c++/3.3.1/cmath:152: error: `sinhf' not declared
/usr/include/c++/3.3.1/cmath:155: error: `tanf' not declared
/usr/include/c++/3.3.1/cmath:158: error: `tanhf' not declared
/usr/include/c++/3.3.1/cmath: In function `float std::acos(float)':
/usr/include/c++/3.3.1/cmath:184: error: `acosf' undeclared in namespace `
   __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.1/cmath: In function `long double std::acos(long
double)':
/usr/include/c++/3.3.1/cmath:194: error: `::acosl' undeclared (first use
here)
/usr/include/c++/3.3.1/cmath: In function `float std::asin(float)':
/usr/include/c++/3.3.1/cmath:204: error: `asinf' undeclared in namespace `
   __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.1/cmath: In function `long double std::asin(long
double)':
/usr/include/c++/3.3.1/cmath:212: error: `::asinl' undeclared (first use
here)
/usr/include/c++/3.3.1/cmath: In function `float std::atan(float)':
/usr/include/c++/3.3.1/cmath:222: error: `atanf' undeclared in namespace `
   __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.1/cmath: In function `long double std::atan(long
double)':
/usr/include/c++/3.3.1/cmath:230: error: `::atanl' undeclared (first use
here)
/usr/include/c++/3.3.1/cmath: In function `float std::atan2(float, float)':
/usr/include/c++/3.3.1/cmath:240: error: `atan2f' undeclared in namespace `
   __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.1/cmath: In function `long double std::atan2(long
double,
   long double)':
/usr/include/c++/3.3.1/cmath:249: error: `::atan2l' undeclared (first use
here)
/usr/include/c++/3.3.1/cmath: In function `float std::ceil(float)':
/usr/include/c++/3.3.1/cmath:260: error: `ceilf' undeclared in namespace `
   __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.1/cmath: In function `long double std::ceil(long
double)':
/usr/include/c++/3.3.1/cmath:268: error: `::ceill' undeclared (first use
here)
/usr/include/c++/3.3.1/cmath: In function `float std::cosh(float)':
/usr/include/c++/3.3.1/cmath:288: error: `coshf' undeclared in namespace `
   __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.1/cmath: In function `long double std::cosh(long
double)':
/usr/include/c++/3.3.1/cmath:296: error: `::coshl' undeclared (first use
here)
/usr/include/c++/3.3.1/cmath: In function `float std::exp(float)':
/usr/include/c++/3.3.1/cmath:306: error: `expf' undeclared in namespace `
   __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.1/cmath: In function `long double std::exp(long
double)':
/usr/include/c++/3.3.1/cmath:314: error: `::expl' undeclared (first use
here)
/usr/include/c++/3.3.1/cmath: In function `float std::floor(float)':
/usr/include/c++/3.3.1/cmath:334: error: `floorf' undeclared in namespace `
   __gnu_cxx::__c99_binding'
/usr/include/c++/3.3.1/cmath: In function `long double std::floor(long
double)
.
.
.

Has anybody got a clue what's going on?

H.




--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list