I'm resending this message because my original was inaccurate. I have been
writing an interface the math constants from math.h - I'm testing out
methods of using "C inline". Only 2 of the functions compiled:
Huge: REAL_64 is
-- maximum value of a
double.
external
"C inline use <math.h>"
alias
"return HUGE;"
end
Huge_val: REAL_64 is
-- Positive infinity.
external
"C inline use <math.h>"
alias
"return HUGE_VAL;"
end
Here is one that did not compile:
M_e: REAL_64 is
-- Base of natural
logarithms (e).
external
"C inline use <math.h>"
alias
"return M_E;"
Here is the error message from the C compiler:
c:\users\saunders\documents\eiffel 6.2 user
files\projects\mandolin3\eifgens\mandolin3_project\w_code\c4\ma2007.c(47) :
error C2065: 'M_E' : undeclared identifier
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
9.0\VC\Bin\amd64\cl.EXE"' : return code '0x2'
Stop.
All three functions appear to be written correctly. In my code I also
included all of the other constants from math.h and they got similar errors
from the C compiler, I just commented out all the others that failed and
froze so I could keep this short. My apologies to Eric Bezault, who
responded to the original message, because of the error.
Does this suggest there is some kind of bug in EiffelStudio?
Regards
Chris Saunders
[Non-text portions of this message have been removed]
------------------------------------
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/eiffel_software/<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/eiffel_software/join (Yahoo! ID required)
<*> To change settings via email:
mailto:
eiffel_software-digest@...
mailto:
eiffel_software-fullfeatured@...
<*> To unsubscribe from this group, send an email to:
eiffel_software-unsubscribe@...
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/