linker warning


hi!
after building code starting imu program, started getting linker errors simple call atoi().

code: [select]
void loop(void) {
  loop_ms = millis();   // since board started.  rolls on in 41 days
  loop_count++;
 
  if (serial.available()>0) { execcommand(); }
 
  acquire_bno();
  double v=map(analogread(0), 0, 1023, 0, 360 );    // read in voltage treat setpoint

  int dog=atoi("123"); // ************ line ******************
 

  double correction=thepids.scale1*thepids.out1 + thepids.scale2*thepids.out2;
  outputfeedback( correction );         // drive pwm servo output step/dir sequence
   
  delay(loop_delay_ms);
}

as written above, linker warning, repeated 3x

< long path> ld.exe: warning: changing start of section .bss 4 bytes

if comment out line "int dog ...", code compiles no warning messages

i can put offending line anywhere same result.

can please point me in right direction here?
thanks in advance!
pr

does code work?

a warning not error.


Arduino Forum > Using Arduino > Programming Questions > linker warning


arduino

Comments

Popular posts from this blog

DHT11 Time out error using v0.4.1library

Sketch upload fails with Java error (___REMOVE___/bin/avrdude)!

Arduino Uno + KTY81/210 temperature sensor