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

compiling error

Rodolfo_Araya
Beginner
248 Views
Hi,

when I compile the file test.f95:

program test

print*,'hello world'

end program test

using the comand:

ifort test.f95 -o test

I obtained the following message:

ipo: warning #11015: Warning unknown option -no_compact_unwind
ipo: warning #11009: file format not recognized for test.f95
ld: warning: in test.f95, file is not of required architecture
Undefined symbols:
"_MAIN__", referenced from:
_main in for_main.o
ld: symbol(s) not found

Everything is OK if I use gfortran.

I have a Mac OS X 10.6.3 with Intel Fortran compiler 11.1.084 (last release?) 64 bits.
I obtained the same with the 32 bits options.

Any idea on what is going on? a compiler bug? a problem with ld?

Many thanks in advance!!

Rodolfo


0 Kudos
2 Replies
TimP
Honored Contributor III
248 Views
An FAQ. Few compilers consider .f95 as equivalent to .f90. It does provoke an amazing bunch of extra errors. Did you try naming your file .f90?
0 Kudos
Rodolfo_Araya
Beginner
248 Views
It works!! renaming the file with .f90 instead of .f95 did the trick.

Thanks a lot for the tip!!

Rodolfo
0 Kudos
Reply