froussel / u8glib

Automatically exported from code.google.com/p/u8glib
Other
0 stars 0 forks source link

error: call of overloaded ‘drawStr(int, int, long int&)’ is ambiguous #330

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
My code:

u8g.firstPage();  
  do {
    //sprintf_P(speed_var4, speed_var, 10);
    u8g.drawStr(  0, 10, "Speed: ");
    u8g.drawStr(  10, 10, speed_var);
    u8g.drawStr( 15, 10, " km/h");
} while( u8g.nextPage() );

I get eror:
error: call of overloaded ‘drawStr(int, int, long int&)’ is ambiguous

I'am newbee..Sorry for my light question :(
Please help me..

Original issue reported on code.google.com by Aleksand...@gmail.com on 13 Mar 2015 at 10:15

GoogleCodeExporter commented 9 years ago
NOT ACTUAL!
I use 
    u8g.setPrintPos(0,64);
    u8g.print(speed_var); // Скорость
And this work!

Original comment by Aleksand...@gmail.com on 14 Mar 2015 at 11:42

GoogleCodeExporter commented 9 years ago
Great, you figured out the solution by yourself!

Original comment by olikr...@gmail.com on 15 Mar 2015 at 11:46