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

Conflict between binary.h and termio.h #22

Open
epsilonrt opened this issue Jun 25, 2020 · 0 comments
Open

Conflict between binary.h and termio.h #22

epsilonrt opened this issue Jun 25, 2020 · 0 comments

Comments

@epsilonrt
Copy link
Owner

The constants defined in /usr/include/piduino/arduino/binary.h enter into confilt with those defining the baudrates in /usr/include/aarch64-linux-gnu/bits/termios.h:

$ gcc -o PiZiGate_test main.c $(pkg-config --cflags --libs piduino)
In file included from /usr/include/piduino/arduino/Arduino.h:224,
from main.c:11:
/usr/include/piduino/arduino/binary.h:23: warning: "B0" redefined
#define B0 0

In file included from /usr/include/termios.h:39,
from main.c:8:
/usr/include/aarch64-linux-gnu/bits/termios.h:121: note: this is the location of the previous definition
#define B0 0000000 /* hang up */

In file included from /usr/include/piduino/arduino/Arduino.h:224,
from main.c:11:
/usr/include/piduino/arduino/binary.h:65: warning: "B110" redefined
#define B110 6

In file included from /usr/include/termios.h:39,
from main.c:8:
/usr/include/aarch64-linux-gnu/bits/termios.h:124: note: this is the location of the previous definition
#define B110 0000003

In file included from /usr/include/piduino/arduino/Arduino.h:224,
from main.c:11:
/usr/include/piduino/arduino/binary.h:277: warning: "B1000000" redefined
#define B1000000 64

In file included from /usr/include/termios.h:39,
from main.c:8:
/usr/include/aarch64-linux-gnu/bits/termios.h:162: note: this is the location of the previous definition
#define B1000000 0010010

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