|
From: | Alastair D'Silva |
Subject: | [avr-libc-dev] [bug #32650] Missing include in util/delay.h |
Date: | Wed, 02 Mar 2011 12:15:55 +0000 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3 |
URL: <http://savannah.nongnu.org/bugs/?32650> Summary: Missing include in util/delay.h Project: AVR C Runtime Library Submitted by: deece Submitted on: Wed 02 Mar 2011 12:15:55 GMT Category: Header Severity: 3 - Normal Priority: 5 - Normal Item Group: libc code Status: None Percent Complete: 0% Assigned to: None Open/Closed: Open Discussion Lock: Any Release: 1.7.* Fixed Release: None _______________________________________________________ Details: Compiling using gcc 4.5.2 against AVR LibC 1.7.1 results in calls to _delay_ms failing with: c:\program files (x86)\mhv avr tools\bin\../lib/gcc/avr/4.5.2/../../../../avr/include/util/delay.h: In function 'void _delay_ms(double)': c:\program files (x86)\mhv avr tools\bin\../lib/gcc/avr/4.5.2/../../../../avr/include/util/delay.h:149:42: error: 'fabs' was not declared in this scope c:\program files (x86)\mhv avr tools\bin\../lib/gcc/avr/4.5.2/../../../../avr/include/util/delay.h:149:43: error: 'ceil' was not declared in this scope Adding math.h to the list of includes in util/delay.h fixes the problem. _______________________________________________________ Reply to this item at: <http://savannah.nongnu.org/bugs/?32650> _______________________________________________ Message sent via/by Savannah http://savannah.nongnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |