- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It works!! renaming the file with .f90 instead of .f95 did the trick.
Thanks a lot for the tip!!
Rodolfo
Thanks a lot for the tip!!
Rodolfo
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page