Giter Club home page Giter Club logo

Comments (3)

cwlseu avatar cwlseu commented on May 21, 2024

I have fix the compile error with the solution following, but I don't know why the two line result to the compile error, anyone know why? thanks.

diff --git a/src/google/protobuf/text_format.cc b/src/google/protobuf/text_format.cc
index 8fc197a..be8231d 100644
--- a/src/google/protobuf/text_format.cc
+++ b/src/google/protobuf/text_format.cc
@@ -35,7 +35,7 @@
 #include <google/protobuf/text_format.h>

 #include <float.h>
-#include <math.h>
+#include <cmath>
 #include <stdio.h>

 #include <algorithm>

or update deps https://github.com/protocolbuffers/protobuf/tree/3.11.x

from graph-learn.

jackonan avatar jackonan commented on May 21, 2024

Your OS and g++ version? It seems some error with your environment. Try to just build protobuf from source code may be a help.

from graph-learn.

cwlseu avatar cwlseu commented on May 21, 2024

My OS is ubuntu 16.04 and g++ version is 5.4. The g++ version is build from source and In my system installed g++-4.9 & g++-5.5 concurrently. I think the problem may result from complex compiler envirnment. The problem isn't exist in a pure ubuntu16.04 with gcc 5.4 envirnment. Thanks.

from graph-learn.

Related Issues (20)

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.