Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29010 Discussions

Intel(R) Fortran Composer XE 2013 SP1 Update 1 in LinuxMint 16

Mauricio_Z_
Beginner
389 Views

Dear community,

I just installed the Intel(R) Fortran Composer XE 2013 SP1 Update 1 in LinuxMint 16 64-bit (derived from Ubuntu 13.10). When installing I was told that this OS was not recognized as valid by the installer, but I decided to continue anyway (Ubuntu 13.04 was officialy supported).

Thanks to the guidelines provided in:

http://software.intel.com/en-us/articles/using-intel-compilers-for-linux-with-ubuntu

the installation finished without any problem.

 

However, when I tried to compile my first code with:

/opt/intel/bin/ifort modparm.f

I got the following unexpected message:

/opt/intel/composer_xe_2013_sp1.1.106/compiler/lib/intel64/for_main.o: In function `main':
/export/users/nbtester/efi2linux_nightly/branch-14_0/20131009_000000/libdev/frtl/src/libfor/for_main.c:(.text+0x42): undefined reference to `MAIN__'

Does it mean that the compiler is not correctly installed ?. If so, how can I solve that ?

 

Thanks in advance for any help,

Mauricio

0 Kudos
1 Reply
Steven_L_Intel1
Employee
389 Views

No - it means that the source you compiled does not contain a main program. Since you did not include -c, it tried to link the object into an executable and no main program was provided. If all you want to do is compile and not link, add -c. Please also make sure that you used the "source" command (in some shells, just "." will do), on the provided compilervars.sh (or .csh) script to properly establish the environment. You would then just use "ifort" and not a full path.

0 Kudos
Reply