I've got a project that includes newlib math.h in one module. This is compiled with VBCC 0.9h. After installing SDK 54.16, including the SDK version of VBCC, I get this error when compiling the project
Code: Select all
'vbcc:bin/vc +newlib -cpp-comments -Lvlibos4: -ISDK:local/newlib/include/ -ISDK:local/common/include/ -g -static -c -o o/lineclass.o lineclass.c
> ((sizeof(x)==sizeof(float)) ? __fpclassifyf(x) : __fpclassifyd(x))
error 272 in line 282 of "math.h": macro 'fpclassify' redefined unidentically
included from file "lineclass.c":30
1 error found!
vbccppc keskeytyi, palautuskoodi 20
vbccppc -quiet "lineclass.c" -o= "T:t_9_0.asm" -cpp-comments -ISDK:local/newlib/include/ -ISDK:local/common/include/ -g -elf -no-regnames -no-multiple-ccs -madd -setccs -use-commons -D__amigaos4__ -D__NEWLIB__ -D__mask=___mask -O=1 -ISDK:local/common/include -ISDK:local/newlib/include -ISDK:newlib/include -ISDK:include/include_h failed
vbcc:bin/vc keskeytyi, palautuskoodi 20
How and who to correct this problem?I didn't check the new SDK yet, but it looks like a problem in the newlib
math.h from SDK 54.16, which is not part of vbcc.
((sizeof(x)==sizeof(float)) ? __fpclassifyf(x) :
__fpclassifyd(x))
error 272 in line 282 of "math.h": macro 'fpclassify' redefined
unidentically
My SDK has just:
extern int __fpclassifyf (float x);
extern int __fpclassifyd (double x);
Probably the new SDK has a second declaration for __fpclassifyX() somewhere?
Then this is a bug, which should be reported.
Marko