Page 1 of 1

STLport-4.6.2\stlport\stl\debug\_vector.h(144):fatal error

Posted: Thu Jan 27, 2005 3:39 pm
by snipexv
Hey,
During the humble beginnings tutorial, when I add the skyplane .cpp and .h files and build I get the following errors :

STLport-4.6.2\stlport\stl\debug\_vector.h(144):fatal error
C1190: managed targeted code requires '#using <mscorlib.dll>'
and '/clr' option

and

STLport-4.6.2\stlport\stl\debug\_vector.h(144):fatal error C3630:
error when processing the token '__value'


I'm using VS .NET 2003 and I read in one of the forums entries that I should use STLport anyways, but to make the VC 7.1 version. When I made STLport the library(lib) folder was there, but there wasn't an include folder. What am I supose to include in VC++ .Net, I'm currently inlcuding the 'stlport' folder. Is this where I went wrong or is it something else. Thank you, snipxv

One other thing. The sample skyplane runs fine, so one thing I suspect is an incorrect link. I followed the tutorial directions for setting up the project properties and double check them to find them exact. Does using a different version of STLport change that?

Posted: Thu Jan 27, 2005 3:49 pm
by haffax
Never seen this error before with Ogre. but you probably chose the wrong project type. You must not use the managed extensions. Create your project as a Win32 application.

If you did, look if you somewhere defined a class with __gc directive or if you used some other managed extensions inside your application. Remove them.

Posted: Fri Jan 28, 2005 12:23 am
by snipexv
Hey,
Thanks for your reply. I went and played with it some more and when I got rid of STLport and rebuilt Ogre that problem was fixed, but, now I have a new problem. I can compile my "space" tutorial but after I've selected my display display driver the skybox will start, but then will immediately close. I seem to have done the tutorial steps correctly, does this problem sound familiar. I've haven't looked into it much yet, but I thought someone might be able to save me some time. Thanks!