-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Description
Hello,
I tried searching the internet for this issue(using the error number), but I was unable to find a descent solution which was helpful. :( I am new to using Boost libraries. Can you please help me to see if I am missing something here.
The issue is described below in more detail.
Operating System : Win764Bit
Visual Studio version : Visual Studio 2017 Community
Steps to reproduce
- Launch Developer Command prompt for VS 2017.
- Navigate to your local repository of Include_gardener.
- Use "cmake" command to generate "make" file and other necessary files.
4.Then use the "nmake" command.
Current Result
The building operation stops at 20% and then we get bunch of errors and warnings. Error logs below.
Expected Result
The program should build 100%.
Error logs
F:\Kunal\New folder (2)\include_gardener\Build>nmake
Microsoft (R) Program Maintenance Utility Version 14.10.25019.0
Copyright (C) Microsoft Corporation. All rights reserved.
[ 20%] Building CXX object CMakeFiles/include_gardener.dir/src/main.cpp.obj
main.cpp
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(80): warning C4805: '==':
unsafe mix of type 'bool' and type 'unsigned int' in operation
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(86): warning C4805: '==':
unsafe mix of type 'bool' and type 'unsigned int' in operation
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(102): warning C4805: '==':
unsafe mix of type 'bool' and type 'unsigned int' in operation
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(108): warning C4805: '==':
unsafe mix of type 'bool' and type 'unsigned int' in operation
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(113): warning C4805: '==':
unsafe mix of type 'bool' and type 'unsigned int' in operation
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(125): warning C4805: '==':
unsafe mix of type 'bool' and type 'unsigned int' in operation
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(147): warning C4805: '==':
unsafe mix of type 'bool' and type 'unsigned int' in operation
F:\Kunal\Boost\boost_1_55_0\boost/utility/result_of.hpp(186): error C2903: 'resu
lt': symbol is neither a class template nor a function template
F:\Kunal\Boost\boost_1_55_0\boost/utility/result_of.hpp(194): note: see referenc
e to class template instantiation 'boost::detail::result_of_nested_result<F,FArg
s>' being compiled
with
[
F=main::<lambda_eb355e8dd3c64bd102a911cf9a637b1d>,
FArgs=const main::<lambda_eb355e8dd3c64bd102a911cf9a637b1d> (std::sh
ared_ptr<INCLUDE_GARDENER::Include_Entry> &)
]
F:\Kunal\Boost\boost_1_55_0\boost/utility/detail/result_of_iterate.hpp(37): note
: see reference to class template instantiation 'boost::detail::tr1_result_of_im
pl<F,F (T0),false>' being compiled
with
[
F=main::<lambda_eb355e8dd3c64bd102a911cf9a637b1d>,
T0=std::shared_ptr<INCLUDE_GARDENER::Include_Entry> &
]
F:\Kunal\Boost\boost_1_55_0\boost/utility/detail/result_of_iterate.hpp(160): not
e: see reference to class template instantiation 'boost::tr1_result_of<F (T0)>'
being compiled
with
[
F=main::<lambda_eb355e8dd3c64bd102a911cf9a637b1d>,
T0=std::shared_ptr<INCLUDE_GARDENER::Include_Entry> &
]
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(168): note: see reference
to class template instantiation 'boost::result_of<const Func (std::shared_ptr<IN
CLUDE_GARDENER::Include_Entry> &)>' being compiled
with
[
Func=main::<lambda_eb355e8dd3c64bd102a911cf9a637b1d>
]
F:\Kunal\Boost\boost_1_55_0\boost/property_map/transform_value_property_map.hpp(
55): note: see reference to function template instantiation 'boost::transform_va
lue_property_map<Func,PM,boost::result_of<const Func(property_traits<PA>::refere
nce)>::type> boost::make_transform_value_property_map(const Func &,const PM &)'
being compiled
with
[
Func=Func
]
F:\Kunal\Boost\boost_1_55_0\boost/utility/result_of.hpp(186): error C3770: 'unkn
own-type': is not a valid base class
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(168): error C2672: 'boost:
:make_transform_value_property_map': no matching overloaded function found
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(168): error C2893: Failed
to specialize function template 'boost::transform_value_property_map<Func,PM,boo
st::result_of<const Func(property_traits<PA>::reference)>::type> boost::make_tra
nsform_value_property_map(const Func &,const PM &)'
with
[
Func=Func
]
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(168): note: With the follo
wing template arguments:
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(168): note: 'PM=boost::vec
_adj_list_vertex_property_map<Graph,Graph *,std::shared_ptr<INCLUDE_GARDENER::In
clude_Entry>,std::shared_ptr<INCLUDE_GARDENER::Include_Entry> &,Tag>'
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(168): note: 'Func=main::<l
ambda_eb355e8dd3c64bd102a911cf9a637b1d>'
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(172): warning C4805: '==':
unsafe mix of type 'unsigned int' and type 'bool' in operation
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(178): error C3536: 'name_m
ap': cannot be used before it is initialized
F:\Kunal\New folder (2)\include_gardener\src\main.cpp(193): warning C4805: '==':
unsafe mix of type 'unsigned int' and type 'bool' in operation
NMAKE : fatal error U1077: 'C:\PROGRA~2\MIB055~1\2017\COMMUN~1\VC\Tools\MSVC\141
0~1.250\bin\HostX86\x86\cl.exe' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017
\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\nmake.exe"' : return code '
0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio\2017
\Community\VC\Tools\MSVC\14.10.25017\bin\HostX86\x86\nmake.exe"' : return code '
0x2'
Stop.
F:\Kunal\New folder (2)\include_gardener\Build>
Also do let me know if you need any other information from my side.
Thanks in advance.