Btsoftbody.h compilation error

Post Reply
stig atle
Posts: 11
Joined: Sat May 10, 2014 9:22 am

Btsoftbody.h compilation error

Post by stig atle »

I'm trying to implement softbodies in my application, as soon as I included BtSoftbody.h I get this error when compiling:

Code: Select all

43>c:\development\myproj\bullet-2.82-r2704\src\bulletsoftbody\btsoftbody.h(92): error C2059: syntax error : 'constant'
43>c:\development\myproj\bullet-2.82-r2704\src\bulletsoftbody\btsoftbody.h(92): error C3805: 'constant': unexpected token, expected either '}' or a ','
43>c:\development\myproj\bullet-2.82-r2704\src\bulletsoftbody\btsoftbody.h(98): error C2059: syntax error : 'constant'
43>c:\development\myproj\bullet-2.82-r2704\src\bulletsoftbody\btsoftbody.h(98): error C3805: 'constant': unexpected token, expected either '}' or a ','
43>c:\development\myproj\bullet-2.82-r2704\src\bulletsoftbody\btsoftbody.h(107): error C2059: syntax error : 'constant'
43>c:\development\myproj\bullet-2.82-r2704\src\bulletsoftbody\btsoftbody.h(107): error C3805: 'constant': unexpected token, expected either '}' or a ','
43>c:\development\myproj\bullet-2.82-r2704\src\bulletsoftbody\btsoftbody.h(115): error C2059: syntax error : 'constant'
43>c:\development\myproj\bullet-2.82-r2704\src\bulletsoftbody\btsoftbody.h(115): error C3805: 'constant': unexpected token, expected either '}' or a ','
43>c:\development\myproj\bullet-2.82-r2704\src\bulletsoftbody\btsoftbody.h(125): error C2059: syntax error : 'constant'
43>c:\development\myproj\bullet-2.82-r2704\src\bulletsoftbody\btsoftbody.h(125): error C3805: 'constant': unexpected token, expected either '}' or a ','
43>c:\development\myproj\bullet-2.82-r2704\src\bulletsoftbody\btsoftbody.h(147): error C2059: syntax error : 'constant'
43>c:\development\myproj\bullet-2.82-r2704\src\bulletsoftbody\btsoftbody.h(147): error C3805: 'constant': unexpected token, expected either '}' or a ','
43>c:\development\myproj\bullet-2.82-r2704\src\bulletsoftbody\btsoftbody.h(155): error C2059: syntax error : 'constant'
43>c:\development\myproj\bullet-2.82-r2704\src\bulletsoftbody\btsoftbody.h(155): error C3805: 'constant': unexpected token, expected either '}' or a ','
when i click that it jumps to this part of the file:

Code: Select all

	///eAeroModel 
	struct eAeroModel { enum _ {
		V_Point,			///Vertex normals are oriented toward velocity
		V_TwoSided,			///Vertex normals are flipped to match velocity	
		V_TwoSidedLiftDrag, ///Vertex normals are flipped to match velocity and lift and drag forces are applied
		V_OneSided,			///Vertex normals are taken as it is	
		F_TwoSided,			///Face normals are flipped to match velocity
		F_TwoSidedLiftDrag,	///Face normals are flipped to match velocity and lift and drag forces are applied 
		F_OneSided,			///Face normals are taken as it is		
		END
	};};
There it does not show any 'red errors' in the code or anything like that.
I have no clue as to what I can do to fix it or why it happens in the first place.
Any hints on where to start debugging?

I can compile the softbody sample, and I've tried with the same includes as there.
still same error, I suspect there is a setting or something like that in my project that the sample projects has - which my project does not.. hmm.
Post Reply