strange error in host code

// do you like C# or Python properties? let's get them!

template<class Data>

class property

{

public:

	property& operator=(const Data& d) { set(d); return *this; }

	operator Data&() { return get();}

protected:

	virtual void set(const Data& d) { data = d; };

	virtual Data& get()    { return data; }

	Data data;

};

then in host code:

property<int> x;

cause this error:

error LNK2001: unresolved external symbol __ZTVN10__cxxabiv117__class_type_infoE

look like we have some problems with RTTI and templates simultaniuosly

C++ (in host or device code) is not fully supported by NVCC/cudacc at this time.

Mark

i see.

NVIDIA_CUDA_Programming_Guide_1.1.pdf

page 22

so is it a bug or i don’t understand this phrase about "front end of the compiler " ?

Are you compile with “–host-compilation=c++” flag to nvcc?

Paulius

what should i change ?

add

“–host-compilation=c++”

?

i have done this but get those errors: