• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
cmath with gcc-3.3
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cmath with gcc-3.3


  • Subject: cmath with gcc-3.3
  • From: Wesley Smith <email@hidden>
  • Date: Sat, 14 May 2005 20:11:28 -0700

Hi, has anyone run into problems compiling projects under gcc-3.3 that
reference cmath?  I've found spotty information by searching google,
but never found any solutions to the compilation problems I'm getting.

Here's the output from gcc.
It's just a sample.  Every inline function produces a similar set of errors.

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
/usr/include/gcc/darwin/3.3/c++/cmath: In function `float std::asin(float)':
/usr/include/gcc/darwin/3.3/c++/cmath:122: error: `::asin' undeclared
(first use here)
/usr/include/gcc/darwin/3.3/c++/cmath: In function `long double
std::asin(long double)':
/usr/include/gcc/darwin/3.3/c++/cmath:130: error: `long double
std::asin(long double)' used prior to declaration
/usr/include/gcc/darwin/3.3/c++/cmath:130: error: `::asin' undeclared
(first use here)
/usr/include/gcc/darwin/3.3/c++/cmath: At global scope:
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Adding files to Xcode 2.0
  • Next by Date: Using tab for completions...
  • Previous by thread: Re: Adding files to Xcode 2.0
  • Next by thread: Using tab for completions...
  • Index(es):
    • Date
    • Thread