On Feb 8, 2010, at 6:07 PM, Eric Niebler wrote:
(Manjunath, please don't top-post. Rearranging things ...)
On 2/9/2010 8:35 AM, Manjunath Kudlur wrote:
On Mon, Feb 8, 2010 at 12:05 PM, Eric Jourdanneau wrote:
I would like to test proto with nvcc, and when I compile the simple Hello world example of 1.42, I get the following error message: /usr/include/boost/proto/detail/decltype.hpp:314: error: invalid use of template-name ‘boost::type’ without an argument list.
Of course it works with g++ I just don't know what to do, can somebody help me on that point?
I am assuming that you are referring to NVIDIA's CUDA compiler, when you say nvcc. I don't know if nvcc has complete C++ compliance/ support for CUDA programs. You are better off posting this question to one of NVIDIA's forums http://forums.nvidia.com/index.php.
I've never tested proto with nvcc, so I'm not surprised it doesn't work. I would need someone familiar with the quirks of this compiler (Troy?) to help get proto working with it. And there's no guarantee it's possible -- proto requires a fairly compliant compiler.
Boost is not compilable with nvcc. The CUDA compiler (nvcc) is, in essence, a C compiler not C++. You'll need to read the documentation but C++ code is compiled by a host compiler (g++, etc...) while nvcc is used to compile device (GPU) specific C-like code. -- Noel