#21 Compile problems using MSVC++

Compile/Install
closed-works-for-me
sgl - core (21)
5
2001-05-04
2001-04-20
No

I get the following errors when trying to compile sgl using MSVC++

sglDrawablePool.cpp
D:\sgl\sgl\sgl\sglDrawablePool.cpp(112) : error C2664: 'class std::_Tree<void const *,struct
std::pair<void const * const,class sglDrawablePool *>,struct std::map<void const *,class
sglDrawablePool *,struct std::less<void const *>,class std::allocat
or<class sglDrawablePool *> >::_Kfn,struct std::less<void const *>,class std::allocator<class
sglDrawablePool *> >::iterator std::map<void const *,class sglDrawablePool *,struct
std::less<void const *>,class std::allocator<class sglDrawablePool *> >
::insert(class std::_Tree<void const *,struct std::pair<void const * const,class sglDrawablePool
*>,struct std::map<void const *,class sglDrawablePool *,struct std::less<void const *>,class
std::allocator<class sglDrawablePool *> >::_Kfn,struct std:
:less<void const *>,class std::allocator<class sglDrawablePool *> >::iterator,const struct
std::pair<void const * const,class sglDrawablePool *> &)' : cannot convert parameter 2 from
'struct std::pair<void const *,class sglDrawablePool *>' to 'const
struct std::pair<void const * const,class sglDrawablePool *> &'
D:\sgl\sgl\sgl\sglDrawablePool.cpp(124) : error C2664: 'class std::_Tree<void const *,struct
std::pair<void const * const,class sglDrawablePool *>,struct std::map<void const *,class
sglDrawablePool *,struct std::less<void const *>,class std::allocat
or<class sglDrawablePool *> >::_Kfn,struct std::less<void const *>,class std::allocator<class
sglDrawablePool *> >::iterator std::map<void const *,class sglDrawablePool *,struct
std::less<void const *>,class std::allocator<class sglDrawablePool *> >
::insert(class std::_Tree<void const *,struct std::pair<void const * const,class sglDrawablePool
*>,struct std::map<void const *,class sglDrawablePool *,struct std::less<void const *>,class
std::allocator<class sglDrawablePool *> >::_Kfn,struct std:
:less<void const *>,class std::allocator<class sglDrawablePool *> >::iterator,const struct
std::pair<void const * const,class sglDrawablePool *> &)' : cannot convert parameter 2 from
'struct std::pair<void const *,class sglDrawablePool *>' to 'const
struct std::pair<void const * const,class sglDrawablePool *> &'
D:\sgl\sgl\sgl\sglDrawablePool.cpp(134) : error C2664: 'class std::_Tree<void const *,struct
std::pair<void const * const,class sglDrawablePool *>,struct std::map<void const *,class
sglDrawablePool *,struct std::less<void const *>,class std::allocat
or<class sglDrawablePool *> >::_Kfn,struct std::less<void const *>,class std::allocator<class
sglDrawablePool *> >::iterator std::map<void const *,class sglDrawablePool *,struct
std::less<void const *>,class std::allocator<class sglDrawablePool *> >
::insert(class std::_Tree<void const *,struct std::pair<void const * const,class sglDrawablePool
*>,struct std::map<void const *,class sglDrawablePool *,struct std::less<void const *>,class
std::allocator<class sglDrawablePool *> >::_Kfn,struct std:
:less<void const *>,class std::allocator<class sglDrawablePool *> >::iterator,const struct
std::pair<void const * const,class sglDrawablePool *> &)' : cannot convert parameter 2 from
'struct std::pair<void const *,class sglDrawablePool *>' to 'const
struct std::pair<void const * const,class sglDrawablePool *> &'

sglIntersect.cpp
C:\Program Files\DevStudio\VC\INCLUDE\xmemory(33) : error C2027: use of undefined type
'sglNode'
sglLayer.cpp

sglScale.cpp
..\sgl\sglScale.hpp(85) : error C2535: 'void sglScale::cull(class sglTraversalState &,unsigned
int)const ' : member function already defined or declared
D:\sgl\sgl\sgl\sglScale.cpp(261) : error C2995: 'cull' : template function has already been defined

sglTransform.cpp
..\sgl\sglTransform.hpp(86) : error C2535: 'void sglTransform::cull(class sglTraversalState
&,unsigned int)const ' : member function already defined or declared
D:\sgl\sgl\sgl\sglTransform.cpp(486) : error C2995: 'cull' : template function has already been
defined

sglTranslate.cpp
..\sgl\sglTranslate.hpp(89) : error C2535: 'void sglTranslate::cull(class sglTraversalState
&,unsigned int)const ' : member function already defined or declared
D:\sgl\sgl\sgl\sglTranslate.cpp(285) : error C2995: 'cull' : template function has already been
defined

Discussion

  • Scott McMillan

    Scott McMillan - 2001-04-24

    Logged In: YES
    user_id=2995

    In version 0.3.0 of SGL, I do not have this problem with
    VC++ 6.0 with all available patches (Service Paks). What
    version of of VC++ and what Service Paks do you have
    installed (I am assuming you are compiling the 0.3.0 release
    of SGL).

     
  • Scott McMillan

    Scott McMillan - 2001-04-24
    • assigned_to: nobody --> mcmillan
     
  • Scott McMillan

    Scott McMillan - 2001-05-04

    Logged In: YES
    user_id=2995

    No one has followed up with more information. I will assume
    that this is a problem with lack of service paks and will
    resolve as "Works For Me." The reporter is requested to
    reopen this bug if this is not the case.

     
  • Scott McMillan

    Scott McMillan - 2001-05-04
    • status: open --> closed-works-for-me
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks