skapunch/box2d

Type redefinition error

Closed this issue · 1 comments

What steps will reproduce the problem?
1. Create a class named as "State" in your project.
2. Import "Box2d.h" in the class where you are using your "State" class.
3.

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

'b2TOIOutput::State' referred to as 'struct'
'b2TOIOutput::State' has a previous declaration here
'b2TOIOutput::State' referred to as 'struct'
'b2TOIOutput::State' has a previous declaration here

in b2TimeOfImpact.h in Collisions folder

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

XCode v4.2 Build 4D199 on Mac OS X v10.7.2

Please provide any additional information below.

Original issue reported on code.google.com by fayslrah...@gmail.com on 10 Jan 2012 at 12:39

This is not a problem with Box2D. That is a compiler bug or other issue.

Original comment by erinca...@gmail.com on 17 Mar 2012 at 6:26

  • Changed state: WontFix