2
0
mirror of https://github.com/boostorg/graph.git synced 2026-02-12 00:02:10 +00:00
Files
graph/doc/trouble_shooting.html
Jeremy Siek 06b6ee6849 added two workarounds
[SVN r9212]
2001-02-15 15:57:35 +00:00

91 lines
3.2 KiB
HTML

<HTML>
<!--
-- Copyright (c) Jeremy Siek, Lie-Quan Lee, and Andrew Lumsdaine 2000
--
-- Permission to use, copy, modify, distribute and sell this software
-- and its documentation for any purpose is hereby granted without fee,
-- provided that the above copyright notice appears in all copies and
-- that both that copyright notice and this permission notice appear
-- in supporting documentation. We make no
-- representations about the suitability of this software for any
-- purpose. It is provided "as is" without express or implied warranty.
-->
<Head>
<Title>Boost Graph Library: Trouble Shooting</Title>
<BODY BGCOLOR="#ffffff" LINK="#0000ee" TEXT="#000000" VLINK="#551a8b"
ALINK="#ff0000">
<IMG SRC="../../../c++boost.gif"
ALT="C++ Boost" width="277" height="86">
<BR Clear>
<h1>Trouble Shooting</h1>
<hr>
<pre>
error C2784: 'T __cdecl source(struct std::pair<T,T>,const G &)' :
could not deduce template argument for 'struct std::pair<_T1,_T1>' from
'class boost::detail::bidir_edge<struct boost::bidirectional_tag,unsigned int>'
</pre>
VC++ does not support Koenig Lookup, therefore you need to refer to functions defined in the boost namespace
using the <tt>boost::</tt> prefix, i.e., <tt>boost::source(e, g)</tt> instead of <tt>source(e, g)</tt>.
<hr>
<pre>
../../..\boost/property_map.hpp(283) : error C2678: binary '[' : no operator defined
which takes a left-hand operand of type 'const struct boost::adj_list_edge_property_map<struct
boost::bidirectional_tag,struct boost::property<enum boost::edge_weight_t,int,struct
boost::no_property>,unsigned int,enum boost::edge_weight_t>' (or there is no acceptable conversion)
</pre>
There is a VC++ bug that appears when using <tt>get(property, graph, edge)</tt>. A workaround is to use
<tt>get(get(property, graph), edge)</tt> instead.
<hr>
<pre>
C:\Program Files\Microsoft Visual Studio\VC98\INCLUDE\xmemory(59) : fatal
error C1001: INTERNAL COMPILER ERROR
(compiler file 'msc1.cpp', line 1786)
</pre>
There can be many reasons for this error, but sometimes it is caused
by using the flag <tt>/Gm</tt> (minimal rebuild). As this flag is not
really necessary, it is a good idea to turn it off.
<hr>
<pre>
V:\3rdPARTY\SXL\INCLUDE\xlocnum(309) : error C2587: '_U' : illegal
use of local variable as default parameter
</pre>
Workaround from Andreas Scherer:<br>
That's the usual problem with MSVC-- 6.0 sp[34] when compiling some
(or all?) of the BGL examples. You can't use the DLL version of the
run-time system. I succeeded in compiling file_dependencies.cpp after
switching to ``[Debug] Multithreaded'' (section ``Code Generation'' on
page ``C/C++'' in the ``Project Settings'').
<hr>
<br>
<HR>
<TABLE>
<TR valign=top>
<TD nowrap>Copyright &copy 2000</TD><TD>
<A HREF="../../../people/jeremy_siek.htm">Jeremy Siek</A>,
Univ.of Notre Dame (<A
HREF="mailto:jsiek@lsc.nd.edu">jsiek@lsc.nd.edu</A>)<br>
<A HREF="../../../people/liequan_lee.htm">Lie-Quan Lee</A>, Univ.of Notre Dame (<A HREF="mailto:llee1@lsc.nd.edu">llee1@lsc.nd.edu</A>)<br>
<A HREF=http://www.lsc.nd.edu/~lums>Andrew Lumsdaine</A>,
Univ.of Notre Dame (<A
HREF="mailto:lums@lsc.nd.edu">lums@lsc.nd.edu</A>)
</TD></TR></TABLE>
</BODY>
</HTML>