I understood how it works by myself ...
Firstly you have to give the compiler path so that nvcc find it (but by default it goes in /usr/bin/ to look for it, I think)
And you have to specify what programing language nvcc will deal with. By default nvcc use a C++ compiler.
So the both command are the same for most UNIX platforms :
Code:
nvcc -o mycodebin ./mycodesource.cpp
nvcc --compiler-bindir=/usr/bin --host-compilation 'C++' -o mycodebin ./mycodesoure.cpp
And you can give some options to the C/C++ compiler by using --compiler-options I guess