free-language / box2d

Automatically exported from code.google.com/p/box2d
0 stars 0 forks source link

Problematic usage of standard library includes #129

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Compile on an "undisclosed" platform

What is the expected output? What do you see instead?

The program compiles. The program does not compile, instead errors on not
finding the standard functions like sqrtf and atan2f.

What version of the product are you using? On what operating system?

Latest SVN.

Please provide any additional information below.

The <csomething> versions of the C standard library <something.h> files
declare every function in the std:: namespace, but Box2D uses the functions
in code without the std:: namespace. (See for example
http://en.wikipedia.org/wiki/C_standard_library) Unfortunately most of the
compilers don't really care about this, but there are ones that do.
Therefore I think all includes should either be changed from csomething to
something.h or the standard functions should be prefixed with the std::
namespace (probably the generally less compatible option).

Original issue reported on code.google.com by gimb...@gmail.com on 14 May 2010 at 6:19

GoogleCodeExporter commented 9 years ago
I'll probably use the namespace in cpp files and qualify with std:: in headers.

Original comment by erinca...@gmail.com on 15 May 2010 at 1:13

GoogleCodeExporter commented 9 years ago
Can someone fix this soon? Its a simple fix, and i need it to compile my 
project.

Original comment by ckrames1...@gmail.com on 26 Jun 2010 at 2:08

GoogleCodeExporter commented 9 years ago
It should be better now. I'm not setup to test this.

Original comment by erinca...@gmail.com on 16 Aug 2010 at 6:11