Developer Studio issue with C++ and double floating point

Developer Studio, Discovery Tool, Watcher

Developer Studio issue with C++ and double floating point

Postby ldir » Tue Oct 22, 2013 4:46 am

I use C++ for my project and faced with issue with double floating-point numbers. All operations was unpredictable, even assignment. After a half day of research I figured out that the problem is in compiler options, that Developer Studio generates for g++ command.
To fix it you should go to the "ARM EABI GCC C++ Compiler" settings, clear FPU support option in "ARM options" and append -msoft-float option in "Other flags".

I use Developer Studio 2.3.1 and SL6087 modem.

For this post the author ldir
has been thanked by :
daav (Tue Oct 22, 2013 6:23 am)
ldir
 
Posts: 1
Joined: Thu Jan 01, 1970 12:00 am
Has thanked: 0 time
Have thanks: 1 time

Re: Developer Studio issue with C++ and double floating poin

Postby daav » Tue Oct 22, 2013 6:23 am

Thanks for the information, will probably be useful for anyone in the same use case.
Developer Studio dev team
User avatar
daav
 
Posts: 1201
Joined: Thu Oct 20, 2005 11:45 am
Location: Paris, France
Has thanked: 8 times
Have thanks: 87 times


Topic Tags

floating point, floating, compiler, GCC

Return to Development tools

Who is online

Users browsing this forum: No registered users and 2 guests