Forums

Full Version: compile with visual studio
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi all!
i'm trying to compile vdrift with visual studio....
a strange error appears here:

the error is here:
Code:
    template <typename T> void _get(const PTree & p, T & value) const
    {
        std::stringstream s(p._value);
        s >> value;
    }
especially in the s >> value; when (seems looking the error) when I try to get a btVector3..

the error is this:

Quote:Error 1 error C2678: binary '>>' : no operator found which takes a left-hand operand of type 'std:Confusedtringstream' (or there is no acceptable conversion) cfg\ptree.h 230

thanks in advance for all!
Can you try the latest revision(with full recompile)?
i've used the latest github code..
I can't find the _get specalization to read btVector3
You are looking for std::istream & operator >> (std::istream & lhs, btVector3 & rhs). It is defined where required(should be factored out int a separate file).

I can compile the code with vs2010, gcc and clang without errors. Which visual studio version are you using?
NaN Wrote:You are looking for std::istream & operator >> (std::istream & lhs, btVector3 & rhs). It is defined where required(should be factored out int a separate file).

I can compile the code with vs2010, gcc and clang without errors. Which visual studio version are you using?

I have vs2010, but i can't find the definition (in each separate file?)
thanksSmile
You should be able to compile without errors.

pull from git
eventually run vdrift-win/premake4 vs2010
rebuild vdrift

To find the function definition: CTRL-F search in files, enter function name.
found it!
thanks very much!! :wink: