POV-Ray : Newsgroups : povray.beta-test : Compile errors with VS 2005 on Windows XP : Compile errors with VS 2005 on Windows XP Server Time
8 Oct 2024 00:48:45 EDT (-0400)
  Compile errors with VS 2005 on Windows XP  
From: madiyaan damha
Date: 1 Mar 2009 15:50:00
Message: <web.49aaf48bcc4752d6c0e1dc100@news.povray.org>
Hello:

I downloaded povray source code for windows and am trying to build it on windows
xp using visual studio 2005. I installed boost 1.37 using boostpro's installer.

I am getting the following errors while building the unmodified source code:

3>------ Build started: Project: vfewin, Configuration: Debug Win32 ------
3>Compiling...
2>octree.cpp
3>vfe.cpp
3>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(56)
: warning C4005: 'MAX_PATH' : macro redefinition
3>        c:\work\povwin-src-3.7\vfe\win\syspovconfig.h(281) : see previous
definition of 'MAX_PATH'
2>C:\Program Files\Microsoft Visual Studio 8\VC\PlatformSDK\include\windef.h(56)
: warning C4005: 'MAX_PATH' : macro redefinition
2>        c:\work\povwin-src-3.7\vfe\win\syspovconfig.h(281) : see previous
definition of 'MAX_PATH'
2>c:\work\povwin-src-3.7\source\backend/support/octree.h(178) : error C2872:
'IStream' : ambiguous symbol
2>        could be 'C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\objidl.h(4444) : IStream'
2>        or 'c:\work\povwin-src-3.7\source\base/fileinputoutput.h(189) :
pov_base::IStream'
2>..\..\source\backend\support\octree.cpp(1355) : error C2872: 'IStream' :
ambiguous symbol
2>        could be 'C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\objidl.h(4444) : IStream'
2>        or 'c:\work\povwin-src-3.7\source\base/fileinputoutput.h(189) :
pov_base::IStream'
2>..\..\source\backend\support\octree.cpp(1377) : error C2039: 'getline' : is
not a member of 'IStream'
2>        C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\objidl.h(4444) : see declaration of 'IStream'
2>..\..\source\backend\support\octree.cpp(1377) : error C2228: left of '.eof'
must have class/struct/union
2>..\..\source\backend\support\octree.cpp(1377) : fatal error C1903: unable to
recover from previous error(s); stopping compilation
2>blob.cpp
3>..\vfe.cpp(288) : error C2872: 'IStream' : ambiguous symbol
3>        could be 'C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\objidl.h(4444) : IStream'
3>        or 'c:\work\povwin-src-3.7\source\base/fileinputoutput.h(189) :
pov_base::IStream'
3>..\vfe.cpp(289) : error C2556: 'IStream
*vfe::vfePlatformBase::CreateIStream(const unsigned int)' : overloaded function
differs only by return type from 'pov_base::IStream
*vfe::vfePlatformBase::CreateIStream(const unsigned int)'
3>        c:\work\povwin-src-3.7\vfe\vfe.h(176) : see declaration of
'vfe::vfePlatformBase::CreateIStream'
3>..\vfe.cpp(289) : error C2371: 'vfe::vfePlatformBase::CreateIStream' :
redefinition; different basic types
3>        c:\work\povwin-src-3.7\vfe\vfe.h(176) : see declaration of
'vfe::vfePlatformBase::CreateIStream'
3>..\vfe.cpp(290) : error C2872: 'IStream' : ambiguous symbol
3>        could be 'C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\objidl.h(4444) : IStream'
3>        or 'c:\work\povwin-src-3.7\source\base/fileinputoutput.h(189) :
pov_base::IStream'
3>..\vfe.cpp(290) : error C2259: 'IStream' : cannot instantiate abstract class
3>        due to following members:
3>        'HRESULT IUnknown::QueryInterface(const IID &,void **)' : is abstract
3>        C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\unknwn.h(113) : see declaration of
'IUnknown::QueryInterface'
3>        'ULONG IUnknown::AddRef(void)' : is abstract
3>        C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\unknwn.h(117) : see declaration of 'IUnknown::AddRef'
3>        'ULONG IUnknown::Release(void)' : is abstract
3>        C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\unknwn.h(119) : see declaration of 'IUnknown::Release'
3>        'HRESULT ISequentialStream::Read(void *,ULONG,ULONG *)' : is abstract
3>        C:\Program Files\Microsoft Visual Studio
8\VC\PlatformSDK\include\objidl.h(4265) : see declaration of
'ISequentialStream::Read'

There are a whole bunch of other error messages which are similar to these below
this one so I did not paste them. Has anyone seem this message? How can I fix
this?

The pov version comment is the following:

 * $File: //depot/povray/smp/source/backend/shape/blob.cpp $
 * $Revision: #34 $
 * $Change: 4715 $
 * $DateTime: 2009/02/21 10:00:39 $
 * $Author: chrisc $

This is from blob.cpp.

Please let me know if you need further information. I followed the installation
instructions by installing boost, adding boost include folder in VS 2005
default include directories (at the end of the other include paths) and hit the
build button. Is this because of some ordering issue of include paths?

I would highly appreciate if someone replies. This is my first post here, so
please ignore my newbie-ness.

Regards,


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.