You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Arduino: 1.8.9 (Windows Store 1.8.21.0) (Windows 10), Placa:"Arduino/Genuino Uno"
In function 'global constructors keyed to 65535_0_testes.ino.cpp.o':
lto1.exe: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
lto-wrapper.exe: fatal error: C:\Program Files\WindowsApps\ArduinoLLC.ArduinoIDE_1.8.21.0_x86__mdqgnx93n4wtt\hardware\tools\avr/bin/avr-gcc returned 1 exit status
compilation terminated.
c:/program files/windowsapps/arduinollc.arduinoide_1.8.21.0_x86__mdqgnx93n4wtt/hardware/tools/avr/bin/../lib/gcc/avr/5.4.0/../../../../avr/bin/ld.exe: error: lto-wrapper failed
collect2.exe: error: ld returned 1 exit status
exit status 1
Erro compilando para a placa Arduino/Genuino Uno
Este relatório teria mais informações com
"Mostrar a saida detalhada durante a compilação"
opção pode ser ativada em "Arquivo -> Preferências"**
FILE:
char a;
String b;
int c;
boolean leituraRealizada = false;
boolean banho[21] = { false, true, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false};
boolean obras[21] = { false,false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false};
byte Qual_Livre(byte NBOX,byte FN);
voidsetup() {
// put your setup code here, to run once:
Serial.begin(9600);
Serial.println ("iniciado");
}
voidloop() {
// put your main code here, to run repeatedly:while (Serial.available()){
a = Serial.read();
b = b + a;
leituraRealizada = true;
}
delay(100);
if (leituraRealizada){
Serial.print("codigo lido ");
Serial.print(b);
c = Qual_Livre(0,0);
Serial.println(c);
leituraRealizada = false;
b = "";
}
}
byte Qual_Livre(byte NBOX,byte FN){
// FN 0 Ler qual Banheiro esta livre.// FN 1 Alterar estado do banheiro.if (FN == 0){
byte QL0;
boolean NF = true;
QL0 = 1;
while (NF){
if(banho[QL0] == false || obras[QL0] == false){
NF = false;
}else{
if (QL0 < 21){
QL0 + 1;
}else{
QL0 = 0;
}
}
}
return QL0;
}
if (FN == 1) {
if (obras[NBOX]){
obras[NBOX] = false;
return0;
}else {
obras[NBOX] = true;
return1;
}
}
}
The text was updated successfully, but these errors were encountered:
code bug :
FILE:
The text was updated successfully, but these errors were encountered: