diff --git a/ArduCopter/test.pde b/ArduCopter/test.pde
index 0b40235f8c55090f859ddc7ffc226f3c24569602..0dc39df27912e5358f270fac9594faea994033ec 100644
--- a/ArduCopter/test.pde
+++ b/ArduCopter/test.pde
@@ -36,6 +36,9 @@ static int8_t	test_eedump(uint8_t argc, 		const Menu::arg *argv);
 static int8_t	test_rawgps(uint8_t argc, 		const Menu::arg *argv);
 //static int8_t	test_mission(uint8_t argc, 		const Menu::arg *argv);
 
+// this is declared here to remove compiler errors
+extern void		print_latlon(BetterStream *s, int32_t lat_or_lon);	// in Log.pde
+
 // This is the help function
 // PSTR is an AVR macro to read strings from flash memory
 // printf_P is a version of printf that reads from flash memory