Hi,
I am playing with nvcc and I found the following problem. Given a program like this:
typedef int wchar_t;
int main(void){
int vector[] = {};
}
It compiles with gcc, but not with g++ or nvcc, which is logical:
foo.cu(1): error: invalid combination of type specifiers
However, I need it to be compiled with nvcc, so I use --host-compilation=C, but with exactly the same error result.
Any idea how to deal with this?
Thanks