none
C++ AMP build fails on library code RRS feed

  • Question

  • Hi there,

    I've added an empty C++ AMP program, and the compiler errors it generates. If someone has any idea about how to solve or even analyze this problem, I would tremendously appreciate it.

    I created this masterpiece with Visual Studio 2013 Professional, Update4 on Windows 8.1. Regular C++ AMP downloaded samples, also suffer from the same problem. 

    Thank you for your response,

    Marc.

    include "stdafx.h"
    #include <amp.h>
    
    int _tmain(int argc, _TCHAR* argv[])
    {
    	return 0;
    }

    Error messages:

    1>------ Build started: Project: AMPTrial, Configuration: Debug Win32 ------

    1>  AMPTrial.cpp

    1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\amprt.h(3762): error C2678: binary '&&' : no operator found which takes a left-hand operand of type 'bool' (or there is no acceptable conversion)

    1>          c:\program files (x86)\microsoft visual studio 12.0\vc\include\ppltasks.h(6750): could be 'Concurrency::task<void> Concurrency::operator &&(const Concurrency::task<void> &,const Concurrency::task<void> &)'

    1>          while trying to match the argument list '(bool, std::_Vb_reference<std::_Wrap_alloc<std::allocator<char32_t>>>)'

    1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\amprt.h(3771): error C2679: binary '=' : no operator found which takes a right-hand operand of type 'bool' (or there is no acceptable conversion)

    1>          c:\program files (x86)\microsoft visual studio 12.0\vc\include\vector(1921): could be 'std::_Vb_reference<std::_Wrap_alloc<std::allocator<char32_t>>> &std::_Vb_reference<std::_Wrap_alloc<std::allocator<char32_t>>>::operator =(const std::_Vb_reference<std::_Wrap_alloc<std::allocator<char32_t>>> &) throw()'

    1>          while trying to match the argument list '(std::_Vb_reference<std::_Wrap_alloc<std::allocator<char32_t>>>, bool)'

    ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

    Friday, December 19, 2014 6:39 PM

Answers