Answer the question
In order to leave comments, you need to log in
How to configure compiler in eclipse?
Hello.
I'm trying to control an arduino from a computer. I write the code in eclipse (Ubuntu OS.), but the following errors occur during compilation. For port communication I use LIBSERIAL
23:31:08 **** Incremental Build of configuration Debug for project Arduino ****
make all
Building file: ../src/Arduino.cpp
Invoking: GCC C++ Compiler
g++ -O0 -g3 -Wall -c -fmessage -length=0 -MMD -MP -MF"src/Arduino.d" -MT"src/Arduino.d" -o "src/Arduino.o" "../src/Arduino.cpp"
In file included from . ./src/Arduino.cpp:11:0:
/usr/include/SerialStreamBuf.cc: In member function 'int LibSerial::SerialStreamBuf::SetParametersToDefault()':
/usr/include/SerialStreamBuf.cc:171:40: error: 'bzero' was not declared in this scope
bzero( &tio.c_cc, sizeof(tio.c_cc) );
^
make: *** [src/Arduino.o] Error 1
23:31:09 Build Finished (took 437ms)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question