From: "Joel_S" Newsgroups: comp.os.msdos.djgpp Subject: Easy question about an error message. Date: Fri, 14 Mar 2003 06:24:02 +0100 Organization: Web2news.com Message-ID: <19199N442@web2news.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: 198.81.26.238 X-Complaints-To: abuse AT web2news DOT net Lines: 21 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com I know all about math.h, but I'm fooling around with FPU commands anyway. So, for this code... #include #include float A, B, floatsin(float Value); main() { A = floatsin(B); return 0; } float floatsin(float Value) { asm ("flds _Value\n\t" "fsin\n\t" "fstp %st(0)"); } Why do I get this error message? Error: undefined reference to `_Value' -- Direct access to this group with http://web2news.com http://web2news.com/?comp.os.msdos.djgpp