Error compiling in Fortran (Ubuntu)

  • Fortran
  • Thread starter meredithvl
  • Start date
  • #1

Main Question or Discussion Point

Hello all, I'm new to this forum, but not to Physics, I'm completing my master degree. :)

I'm currently running a simulation using Minuit from CERN. I recently changed the computer I'm working on, the new computer has Ubuntu 10.10 installed (I was working on my director's Mac before). All my coding is written in Fortran 77. I installed Minuit libs, gfortran, fort77 and gcc in the computer with Ubuntu, but when I try to compile, I get this error:"I/O error on c_file".

I did a search on this error, and all I found is that this is a C or C++ error. I'm puzzled, because I'm not using C coding or C compilers. Everything I tried, like creating alias, or using makefile, failed. I changed nothing in the program itself, and it compiled just fine in the Mac. I really don't know what is wrong.

Any thoughts will be greatly appreciated!
 

Answers and Replies

  • #2
7
0
Is this still a problem?
If so, which of the above compilers did you use? If it was gfortran that would be extremely odd, but if you were using gcc I could see why a C/C++ error would occur.

I use gfortran to compile my f90 programs on UBUNTU. The most used compile line for me is

gfortran -o test [your file name].f90

(or .f77 in your case). 'test' is the name of the compiled file.
 
  • #3
I get this error when compiling with fort77, anyway I installed Intel compiler, and this still doesn't work, but it's probably perhaps I'm running Ubuntu 64 bits, and CERN libraries are compiled for 32 bits. I'm still working on the problem, to see if I can compile CERN libraries myself.
Thank you for your reply.
 

Related Threads on Error compiling in Fortran (Ubuntu)

  • Last Post
Replies
4
Views
7K
  • Last Post
Replies
4
Views
2K
  • Last Post
Replies
9
Views
8K
Replies
1
Views
2K
Replies
1
Views
3K
Replies
3
Views
9K
  • Last Post
Replies
2
Views
3K
Replies
3
Views
855
  • Last Post
Replies
10
Views
3K
Top