Dear all, I came across the following error when trying to compile ifeffit-1.2.8 (uprading from version 1.2.6) in my Linux FC4 box: ifort -g -c ifftest1.f fortcom: Error: ifftest1.f, line 202: A RETURN statement is invalid in the main program. return -------^ compilation aborted for ifftest1.f (code 1) make[3]: *** [ifftest1.o] Error 1 Does anyone know what the problem might be? Thanks, Igor _________________________________________________________________ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
Dear all, I found the solution for the problem I described in my previous email (below). Turns out the make program was trying to use the ifort Fortran compiler and it seems not to like the command return. I ran configure with the option F77=g77 and it worked fine. Looks like I got ahed of myself when I sent the previous email. Sorry about that! Igor
Dear all,
I came across the following error when trying to compile ifeffit-1.2.8 (uprading from version 1.2.6) in my Linux FC4 box:
ifort -g -c ifftest1.f
fortcom: Error: ifftest1.f, line 202: A RETURN statement is invalid in the main program.
return
-------^
compilation aborted for ifftest1.f (code 1)
make[3]: *** [ifftest1.o] Error 1
Does anyone know what the problem might be?
Thanks,
Igor
_________________________________________________________________ Dont just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/
_______________________________________________ Ifeffit mailing list Ifeffit@millenia.cars.aps.anl.gov http://millenia.cars.aps.anl.gov/mailman/listinfo/ifeffit
_________________________________________________________________ Express yourself instantly with MSN Messenger! Download today - it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Hi Igor, Thanks. That was technically an error in ifftest1.f (that is, a main 'program' cannot do a 'return') that g77 thought was OK but ifort sems to have caught. I'll fix it in the next release and look for other illegal 'return's. --Matt
participants (2)
-
Igor Vasconcelos
-
Matt Newville