Here is a problem when installing openflower

Help
cxoo
2006-11-24
2013-04-09
  • cxoo
    cxoo
    2006-11-24

    Hi there, first many thanks to the developer of openflower!

    today I tried to install openflow in my mac os tiger.

    But, it displayed:

    Mesh.cpp:237: error: 'pow' was not declared in this scope
    Mesh.cpp:237: error: 'sqrt' was not declared in this scope

    So I don't know what I should do next. To clearly show you what is the problem. I paste all it displayed on my screen.

    cxoo:/Users/fromzhaomi/Documents/openflower-v1.0 root# make
    make  all-recursive
    Making all in src
    Making all in Algorithms
    make[3]: Nothing to be done for `all'.
    Making all in Boundaries
    Making all in BCNavierStokes
    make[4]: Nothing to be done for `all'.
    make[4]: Nothing to be done for `all-am'.
    Making all in Equations
    make[3]: Nothing to be done for `all'.
    Making all in Geometry
    source='Mesh.cpp' object='Mesh.o' libtool=no \ depfile='.deps/Mesh.Po' tmpdepfile='.deps/Mesh.TPo' \ depmode=gcc3 /bin/sh ../../depcomp \ g++ -DHAVE_CONFIG_H -I. -I. -I../..     -g -O2 -c -o Mesh.o `test -f 'Mesh.cpp' || echo './'`Mesh.cpp
    Mesh.cpp: In member function 'void Mesh::calculateFacesElementsProperties()':
    Mesh.cpp:237: error: 'pow' was not declared in this scope
    Mesh.cpp:237: error: 'sqrt' was not declared in this scope
    make[3]: *** [Mesh.o] Error 1
    make[2]: *** [all-recursive] Error 1
    make[1]: *** [all-recursive] Error 1
    make: *** [all] Error 2

     
    • 'pow' and 'sqrt' are mathematical function from the c++ library. try including the "math.h" (this is a standard c++ file, should be installed with your compiler)