meiyunyang / chipmunk-physics

Automatically exported from code.google.com/p/chipmunk-physics
MIT License
0 stars 0 forks source link

Error when including cpVect.h from my application #31

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.Including cpVect.h from one of my files (that file uses the vect auxiliary 
functions)
2.Compile error
3.

What is the expected output? What do you see instead?
../libs/Chipmunk/include/chipmunk/cpVect.h:210:0 
../libs/Chipmunk/include/chipmunk/cpVect.h:210: error: expected declaration 
before '}' token

The closing bracket inside the #if is matched to a bracket outside this file

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

Xcode on IOS 4.2. Using latest code from SVN repository.
Please provide any additional information below.

Original issue reported on code.google.com by diego.ro...@gmail.com on 11 Dec 2010 at 3:10

GoogleCodeExporter commented 8 years ago
I suspected that might turn out to be problematic. I moved the C++ operators to 
chipmunk.h fully outside of the extern block instead.

Original comment by slemb...@gmail.com on 11 Dec 2010 at 5:48