Hi all,
while trying to compile the city_visitor.cpp example in the Graph lib with
VC60 SP 3, I've got the following error
--------------
--------------------Configuration: CityVisitor - Win32
Release--------------------
Compiling...
CityVisitor.cpp
C:\BOOST\INCLUDE\BOOST-1_31\boost/graph/depth_first_search.hpp(132) : error
C2059: syntax error : 'static_cast'
C:\BOOST\INCLUDE\BOOST-1_31\boost/graph/depth_first_search.hpp(228) :
see reference to function template instantiation 'void __cdecl
boost::detail::depth_first_visit_impl(const class
boost::adjacency_list
vc6.0 is a very old compiler there are known code generation problems (to me personally) before sp4 (btw, sp6 is the latest) At Sunday 2004-06-06 02:28, you wrote:
Hi all, while trying to compile the city_visitor.cpp example in the Graph lib with VC60 SP 3, I've got the following error -------------- --------------------Configuration: CityVisitor - Win32 Release-------------------- Compiling... CityVisitor.cpp C:\BOOST\INCLUDE\BOOST-1_31\boost/graph/depth_first_search.hpp(132) : error C2059: syntax error : 'static_cast' C:\BOOST\INCLUDE\BOOST-1_31\boost/graph/depth_first_search.hpp(228) : see reference to function template instantiation 'void __cdecl boost::detail::depth_first_visit_impl(const class boost::adjacency_list
&,unsigned int,class boost::dfs_visitor > > &,class boost::iterator_property_map ,enum boost::default_color_type,enum boost::default_color_type &>,struct boost:: detail::nontruth2)' being compiled Error executing cl.exe. CityVisitor.exe - 1 error(s), 0 warning(s) --------------------------------------------- To be noted, the static_cast operator compiles normally in any other application. The archives of the mailing list contains a similar complain with iterator.hpp (dated Feb 2003 !!) but no solutions were posted in response. Anybody have any idea how to get through this problem Regards, M.Hosni _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
Victor A. Wagner Jr. http://rudbek.com The five most dangerous words in the English language: "There oughta be a law"
mhosni@softhome.net wrote:
Hi all,
while trying to compile the city_visitor.cpp example in the Graph lib with VC60 SP 3, I've got the following error
I believe this specific problem was fixed in CVS. However, as you can see in http://boost.sourceforge.net/regression-logs/cs-win32_metacomm/developer_res... VC60 is not particularly good on Boost.Graph anyway, and, for example, the "dfs" test, instead of failing on static_cast, produces internal compiler error. You might want to get more comforming compiler, such as VC7.1 (which has a free command line tools download) or gcc (which is available for Windows). - Volodya
participants (3)
-
mhosni@softhome.net
-
Victor A. Wagner Jr.
-
Vladimir Prus