Stumped

batonrye

12-04-2006 22:00:21

Alright... I ususally perfer not to post compiler errors, but this one has got me stumped:

E:\Programming\NewtonSDK\sdk\Newton.h(27) : error C2144: syntax error : 'float' should be preceded by ';'
E:\Programming\NewtonSDK\sdk\Newton.h(27) : error C2501: 'v' : missing storage-class or type specifiers
c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\include\ostream(604) : fatal error C1903: unable to recover from previous error(s); stopping compilation


I am compiling an app using ogrenewt (based loosely off of a demo.) The problem obviously lies within my own code, but I have no idea where because the errors are located in newton.h. Other demos compile fine.

Anybody have some hints as to the type of senerio to cause an error like this? Perhaps I am passing a param of the wrong type some where (float vs REAL?)

Thanks

batonrye

12-04-2006 23:20:23

fixed

walaber

13-04-2006 00:24:42

please post the solution so other users can avoid the same problem!

batonrye

13-04-2006 03:32:37

Well, the solution is not to accidently put random characters (like the letter v) at the top of your header files. :roll:

OvermindDL1

13-04-2006 04:00:43

Ergo, making things Read-Only for api's you downloaded and intend not to change works well as VS asks if you wish to overwrite a read-only file. :)

batonrye

13-04-2006 05:07:35

Oddly enough the 'v' was in a file of my own, but the error still showed up in newton.h ...

comilers are very G.I.G.O.

OvermindDL1

13-04-2006 22:38:38

An #include word is part of the preprocessor. It literally takes the included file and replaces this line with that file. You probably had the v right before an #include <"OgreNewt.h">.