Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 635
Jay Avatar asked Feb 09 '12 09:02

Jay


1 Answers

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.

like image 109
Artem Tokmakov Avatar answered Oct 25 '22 09:10

Artem Tokmakov