Try to compile this in a .c file.
Compiler chokes.
---------------------------------
#include <math.h>
void test ()
{
float x = logf (2) / logf (2);
}
---------------------------------
Try to compile this in a .c file.
Compiler chokes.
---------------------------------
#include <math.h>
void test ()
{
float x = logf (2) / logf (2);
}
---------------------------------
logf problem?
Lexin Shan Dev
VC++ 2005 RTM.
Win32.
AlexPil
Thanks in advance for taking the time to log the issue!
Thanks,
Ayman Shoukry
VC++ Team
JFRoy3
Did you already log the issue If you did, please let me know so that I can make sure the reponsible folks take a look straight ahead.
Thanks,
Ayman Shoukry
VC++ Team
Alex Ward
#define
logf(x) ((float)log((double)(x)));The semicolon causes this to occur. You should open a bug so MS can get this fixed.
As a local-only workaround you can remove the semicolon in math.h, or you can #undef it and #define it the right way.
Brian
shakalama
Someone already did.
http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx feedbackid=7a6be066-67c9-4bd4-853d-db08c7038b2f
Brian