Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

esp-utils doesn't compile with version 8.2.0 (Ubuntu 8.2.0-7ubuntu1) #55

Open
oli4gate opened this issue Feb 6, 2019 · 0 comments
Open

Comments

@oli4gate
Copy link

oli4gate commented Feb 6, 2019

compiling esp-utils with g++ version 8.2.0 stops with errors like :

In file included from /usr/include/x86_64-linux-gnu/sys/types.h:193,
from /usr/include/stdlib.h:394,
from /usr/include/c++/8/bits/std_abs.h:38,
from /usr/include/c++/8/cmath:47,
from /usr/include/c++/8/math.h:36,
from esp-flasher.cpp:15:
esp-flasher.cpp:87:10: error: redefinition of ‘uint16_t __uint16_identity(uint16_t)’
uint16_t htole16(uint16_t n) {

to bypass this I have installed g++-5
and modified the Makefile,

CXX ?= gcc
VERSION += -5
CFLAGS += -c -Wall
LDFLAGS += -Os

$(OBJDIR)/%.o: %.cpp
@echo "CXX $<"
@mkdir -p $(dir $@)
@$(CXX)$(VERSION) $(CFLAGS) $&lt; -o $@

just fyi

@oli4gate oli4gate changed the title esp-utils doesn't comile with version 8.2.0 (Ubuntu 8.2.0-7ubuntu1) esp-utils doesn't compile with version 8.2.0 (Ubuntu 8.2.0-7ubuntu1) Mar 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant