This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc 3.3 cmath undefined errors


Hi, I'm trying to compile a program that uses the cmath functions. 
I've been looking for about a week for a solutino to this problem, so
hopefully someone will have a hint.  Here's a partial output from gcc:

Any ideas as to whjat might cause this?

thanks,
wes

CompileC "build/FLTK Test.build/FLTK
Test.build/Objects-normal/ppc/main.o" main.cpp normal ppc c++
com.apple.compilers.gcc.3_3
    cd "/Users/na/Programming/FLTK Test"
    /usr/bin/gcc-3.3 -x c++ -arch ppc -pipe -Wno-trigraphs
-fasm-blocks -fpascal-strings -g -O0 -mtune=G4 -fmessage-length=0
-ffix-and-continue -fzero-link "-F/Users/na/Programming/FLTK
Test/build" "-I/Users/na/Programming/FLTK Test/build/include"
-I/sw/include "-I/Users/na/Programming/FLTK Test/build/FLTK
Test.build/FLTK Test.build/DerivedSources"
"-Wp,-header-mapfile,/Users/na/Programming/FLTK Test/build/FLTK
Test.build/FLTK Test.build/FLTK Test.hmap" -c
"/Users/na/Programming/FLTK Test/main.cpp" -o
"/Users/na/Programming/FLTK Test/build/FLTK Test.build/FLTK
Test.build/Objects-normal/ppc/main.o"
In file included from /usr/include/gcc/darwin/3.3/c++/bits/locale_facets.tcc:41,
                 from /usr/include/gcc/darwin/3.3/c++/locale:47,
                 from /usr/include/gcc/darwin/3.3/c++/bits/ostream.tcc:37,
                 from /usr/include/gcc/darwin/3.3/c++/ostream:515,
                 from /usr/include/gcc/darwin/3.3/c++/iterator:70,
                 from /sw/include/Magick++/STL.h:15,
                 from /sw/include/Magick++.h:11,
                 from /Users/na/Programming/FLTK Test/main.cpp:6:
/usr/include/gcc/darwin/3.3/c++/cmath: In function `float std::acos(float)':
/usr/include/gcc/darwin/3.3/c++/cmath:102: error: `::acos' undeclared
(first use here)
/usr/include/gcc/darwin/3.3/c++/cmath: At global scope:
/usr/include/gcc/darwin/3.3/c++/cmath:105: error: `acos' not declared
/usr/include/gcc/darwin/3.3/c++/cmath: In function `long double
std::acos(long double)':
/usr/include/gcc/darwin/3.3/c++/cmath:112: error: `long double
std::acos(long double)' used prior to declaration
/usr/include/gcc/darwin/3.3/c++/cmath:112: error: `::acos' undeclared
(first use here)
/usr/include/gcc/darwin/3.3/c++/cmath: At global scope:
/usr/include/gcc/darwin/3.3/c++/cmath:115: error: `asin' not declared


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]