Hallo Gunther

Am 22.03.09 schriebst Du

> How about using the original C-library of your system together with its
> headers? After all the version you are currently using is an "alien" and

without changed headers old ompiler and libs do not work, because for C
there is no
sqrtf and other C99 funcs and many C++ programs get also many errors.

i see old libstdc++ contain sqrtf but get many other linker errors.

there is also a sqrtf not undef in cmath as many other functions are.
When i define sqrtf in math.h then the sqrtf func in libstdc++ is maybe not
add and this strange linker error come.but wy it work not correct when i
add sqrtf to libc i dont know.only solution below work.

only this funcs are undef.

// Get rid of those macros defined in <math.h> in lieu of real functions.
#undef abs
#undef div
#undef acos
#undef asin
#undef atan
#undef atan2
#undef ceil
#undef cos
#undef cosh
#undef exp
#undef fabs
#undef floor
#undef fmod
#undef frexp
#undef ldexp
#undef log
#undef log10
#undef modf
#undef pow
#undef sin
#undef sinh
#undef sqrt
#undef tan
#undef tanh 

> Bernd Roesch wrote:
>> I see in my c++config.h file
>> 
>> this stand here
>> 
>> /* Define if the compiler/host combination has __builtin_sqrtf. */
>> /* #undef _GLIBCXX_HAVE___BUILTIN_SQRTF */ 
>> 
>> I find now a solution that work without change of cmath
>> 
>> when i add in math.h this line then it work.the function can too stand as
>> static inline in the math.h file.
>> 
>> #define __builtin_sqrtf sqrtf
> 
> How about using the original C-library of your system together with its
> headers? After all the version you are currently using is an "alien" and
> doesn't fit for your system despite the fact that it was based on your
> systems C-library and its headers. Carefully merging changes back to the
> original version would be the better solution.
> 
> Gunther
> 
>>> On Mon, Mar 9, 2009 at 3:59 PM, Gabriel Dos Reis <dosr...@gmail.com>
>>> wrote:
>>>> On Mon, Mar 9, 2009 at 7:11 AM, Bernd Roesch <nospamn...@web.de> wrote:
>>>>> Hello Gabriel
>>>> [...]
>>>>> You see there is the _ not in.normaly funcs that not find have a _
>>>>> before
>>>>> 
>>>>> To get all work, it seem i need add the same function add in math.h
>>>>> and
>>>>> in
>>>>> the linker
>>>>> lib or change cmath file and remove all __builtin_ commands the
>>>>> architecture
>>>>> not have.
>>>> I believe one should convince the middle end to emit libcall
>>>> for __builtin_xxx when the target has no builtint support.
>>> It of course does.
>>> 
>>> Richard.
>> Regards
> 
> 
> 
> 
mfg Bernd

Reply via email to