Giter Site home page Giter Site logo

libplyxx's Introduction

libply++

C++ library for reading and writing PLY files.

Supports ASCII and binary files.

Requirements

C++14

libplyxx's People

Contributors

srajotte avatar

Stargazers

 avatar

Watchers

 avatar James Cloos avatar

libplyxx's Issues

Tried to build, got errors on pow, stof, etc.

I cloned the repo and ran "build libplyxx" (see http://bezitopo.org/developers.html), then in the newly created build directory ran "make". "build libplyxx" gave the following output for dbg:

-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/phma/build/libplyxx/dbg

I got a bunch of errors beginning:

In file included from /home/phma/src/libplyxx/libplyxx/libplyxx.h:12:0,
                 from /home/phma/src/libplyxx/libplyxx/libplyxx_internal.h:3,
                 from /home/phma/src/libplyxx/libplyxx/libplyxx.cpp:1:
/home/phma/src/libplyxx/libplyxx/textio.h: In function ‘T textio::stor(const textio::SubString&)’:
/home/phma/src/libplyxx/libplyxx/textio.h:107:24: error: ‘pow’ is not a member of ‘std’
    real += frac / std::pow(static_cast<T>(10.0), n);
                        ^~~
/home/phma/src/libplyxx/libplyxx/textio.h:124:23: error: ‘pow’ is not a member of ‘std’
    real = real * std::pow(static_cast<T>(10.0), sign * exponent);
                       ^~~
/home/phma/src/libplyxx/libplyxx/textio.h: In function ‘T textio::stor(const string&)’:
/home/phma/src/libplyxx/libplyxx/textio.h:136:10: error: ‘stof’ was not declared in this scope
   return stof<T>(SubString(str.cbegin(), str.cend()));
          ^~~~

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.