I want to run this example : http://software.intel.com/sites/products/documentation/doclib/mkl_sa/11/mkl_lapack_examples/zgesvd_e...
to do this i installed "composer_xe_2013.3.163"
and pathed it as : "source $HOME/intel/composer_xe_2013.3.163/bin/compilervars.sh ia32" in .bashrc
then to compile the program, the command line in the terminal is : $ gcc zgesvd.c
but it cant realized the zgesvd as below :
$ gcc zgesvd.c
/tmp/ccJyWTh0.o: In function `main':
zgesvd.c:(.text+0xeb): undefined reference to `zgesvd'
zgesvd.c:(.text+0x1b1): undefined reference to `zgesvd'
collect2: error: ld returned 1 exit status
how can i fix this problem?
Sourcing the shell script for the Intel compiler is done in preparation for using the Intel compiler. To build an example using the Intel C compiler, the command is [bash]icc -mkl zgesvd.c[/bash].
If you really wish to build using gcc instead, you may need to use additional optional arguments or set up a suitable environment yourself.
As suggest by mecej4, adding "-mkl" is easy way for icc. If you are using the gcc, the following tools may provide some help on the libraries needed for the application:
as meseje4 suggested I tried to install C++Cpmposer to utilizing "icc" but some problem Arise in downloading its package.
i tried non-commersional version http://software.intel.com/en-us/non-commercial-software-development
after selecting the C++Composer it goes to the page https://registrationcenter.intel.com/RegCenter/NComForm.aspx?ProductID=1517
but the icon of the "accept" in this page is inactive
how can i download this package?