delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/03/14/00:32:39

From: "Joel_S" <jbs30000 DOT news DOT invalid AT web2news DOT net>
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
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<math.h>
#include<stdio.h>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019