Linking problem with CUBLAS

I am trying to use CUBLAS in one of the image processing application. The imaging application is compiled with GCC-4.4.3.
OS: Ubuntu-10.04, CUDA 3.2

The application crashes whenever it tries to load -lcublas library. When -lcublas is not specified at time of linking, the application works absolutely fine.
To be sure that it’s the problem at time of loading, I also tried loading CUBLAS with dlopen(…) at runtime. The application crashed again at time of invoking dlopen. I can’t trap any error as it crashes the moment it attempts to load

Please suggest if there are any options/compiler-flags to make it work.

Thanks in Advance,

Check with CUDA 4.0…