简体   繁体   中英

error MSB6006: “cmd.exe” exited with code

I am building driver for my USB device. While building using msvisual studio10 I am getting following two errors:

 C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets(151,5):
 error MSB6006: "cmd.exe" exited with code

and

C:/boost32/include/boost-1_48\boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp(34):
error C2766: explicit specialization;
'boost::numeric::numeric_cast_traits<char,char>' has already been
defined 2>         
C:/boost32/include/boost-1_48\boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp(18)
: see previous definition of 'numeric_cast_traits<char,char,void>'

Help me out in getting rid of these two errors which are hindering tyhe building process of my project.

I realize the question is quite old, but some people seem to be interested in resolution.

I believe, the boost compilation problem might be described here . The problem is with boost version 1.48, exactly what you seem to have.

Then, to fix it try using newer boost version or just take the problematic header from newer boost version.

Now, the cmd.exe error is most likely caused by this compilation failure.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM