Skip to content

undeclared identifier #499

Answered by rsta2
petemoore asked this question in Q&A
Nov 13, 2024 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

This is a problem with tools/cflashy.c, the new serial bootloader version from Circle, written in C, which obviously cannot be build on MacOS. I do not have a Mac and wasn't able to test this. This patch should help to disable cFlashy on MacOS, so that you can build the other libraries and files:

diff --git a/tools/Makefile b/tools/Makefile
index 26286b4..d2e4407 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -2,7 +2,7 @@
 # Makefile
 #
 
-ifneq ($(OS),Windows_NT)
+ifeq ($(OSTYPE),linux)
 
 all: cflashy converttool
 
@@ -26,7 +26,7 @@ converttool.win: converttool.c
        x86_64-w64-mingw32-gcc -o converttool.win converttool.c
        chmod -x converttool.win
 
-else
+else ifeq ($(O…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@petemoore
Comment options

@petemoore
Comment options

@rsta2
Comment options

Answer selected by petemoore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants