I am building a large Fortran project with hundreds of files that has successfully been built using make. I am now trying to create an Eclipse project for it, but have run into a strange problem, which I don't believe is a Fortran problem.
As I added one of the last files to the project (building after each addition), I got an internal build error from Eclipse, "Can't find a module named: to". I don't make any calls to a function named "TO" and, in an effort to find the source of the problem, the added file has had all its lines commented out. So it now looks like
SUBROUTINE FOO(X)
RETURN
END
When I remove the file from the project, I get normal "can't find module _foo" errors. When I add it, I get the Internal Build Error.
Is there a way to get a detailed output of what the builder is doing so I can find where my build problem is?
Also, Is there a way to compile one file in Eclipse without compiling & linking the whole program?
As suggested by roygvib (in this link to Intel Developer Zone), the problem seems to be particular to Eclipse and how it builds Fortran projects. Although I am not able to use a different IDE as he suggested, I was able to get around this problem by creating a new C++ project from an existing makefile (but it's still Fortran) described here. The makefiles I had were somewhat convoluted, but Eclipse had no problem finding all the source code and building correctly.