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

Compilation fails with ‘CRTSCTS’ undeclared #2

Closed
probonopd opened this issue Feb 7, 2015 · 2 comments
Closed

Compilation fails with ‘CRTSCTS’ undeclared #2

probonopd opened this issue Feb 7, 2015 · 2 comments

Comments

@probonopd
Copy link

On Ubuntu 14.04.1 LTS compilation fails:

me@host:~/esptool-ck$ make
gcc -Iinfohelper -Ielf -Ibinimage -Iargparse -Iserialport -Iespcomm  -std=c99 -Os -Wall  -DLINUX -c serialport/serialport.c -o build/serialport/serialport.o
serialport/serialport.c: In function ‘serialport_open’:
serialport/serialport.c:374:22: error: ‘CRTSCTS’ undeclared (first use in this function)
     term.c_cflag &= ~CRTSCTS;
                      ^
serialport/serialport.c:374:22: note: each undeclared identifier is reported only once for each function it appears in
make: *** [build/serialport/serialport.o] Error 1
@probonopd
Copy link
Author

This can be fixed by using the -std=gnu99 compiler flag instead of -std=c99 (but since I don't know what this does to other platforms, it is probably best to change the Makefile so that this flag is used only on Linux platforms).

@igrr
Copy link
Owner

igrr commented Feb 10, 2015

I've switched to -std=gnu99 for all platforms and it seems to be okay.

@igrr igrr closed this as completed Feb 10, 2015
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

2 participants