Cannot initialize cublas library

Hi all, I’m coding on VS2013 with CUDA toolkit 6.5 installed. Today I tried to use cublas. I tried different methods of initialization, and none of them was working:

#include <cuda_runtime.h>
#include "cublas.h"
int main(){
cublasInit();
cublasShutdown();
}
#include <cuda_runtime.h>
#include "cublas_v2.h"
int main(){
cublasHandle_t handle;
cublasCreate(&handle);
cublasDestroy(handle)
}
#include <cuda_runtime.h>
#include "cublas_v2.h"
int main(){
cublasHandle_t handle;
cublasCreate_v2(&handle);
cublasDestroy_v2(handle)
}

All methods yield the same errors: two unresolved expressions. Before I used CUDA without CUBLAS and everything was working.

My GPU is NVidia GeForce 650 Ti with 3.0 compute capability.

Thanks.

Probably you are not linking against the cublas library.

You might want to start by inspecting a cublas project from the cuda sample codes. For example simple CUBLAS:

[url]CUDA Samples :: CUDA Toolkit Documentation

And it would be clearer for those trying to help you if you included the actual VS output, rather than summarizing it as “All methods yield the same errors: two unresolved expressions.”

For example, for version 2, can you paste the actual error output from VS here? Please include the entire output, which should include the compile command line that is generating the error as well as the actual errors.

Yes, after I linked it against, everything starts to work, thanks.
Can you btw explain me, where I can find full output in VS2013?