[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[photran] Fortran 77 syntax errors
- From: Miguel Méndez <miguel.mendez@xxxxxx>
- Date: Thu, 12 Jul 2012 12:14:03 +0200
- Delivered-to: email@example.com
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:x-google-sender-auth:message-id :subject:to:content-type; bh=RicPo+pTA671BNCJhEArXMZdPV6T2HdSMkN/jwo97B8=; b=NzYoqBr8tiIFU9eeYRh4t48jEfa7r4Haa3RobvxqyWSj0B1qUjewqJ2sAizr0iYmWR 1FrDhJAwHxh3e8k1YB4a5p+1UXq5148xoCfD3uObO5UhaKfy/2WM/e4mNkiPeunCFoBs 9oaA/tZQpsL/Dn255NRVQFQCizrY0FvPhZvmw5IkLkSsBis0+XpHMOjkdnc6/M2jHnFv zmvfHR+k14yNzw43CL2qObYdc4OU6d3IR8XTuYb91n8JhpUsvfUIHXU4kTz7/nqVbQ5C D9ZSws2uOABhsN9OJXj2fi0YROyOlXfcTgyXuifoOWIfh4swmkJgERx3qsXiwLvD740G aRLQ==
I wrote yesterday about problems with code folding. I've found that the problem is that photran seems to not well recognize Fortran 77's free form. My file has an .F77 extension and in project preferences .F77 extension is set to be Free form with CPP preprocessing. I get complains about coments with the letter "c" and about line continuation with "&". I've fixed all that, even though ifort compiles it perfectly, but I get now new syntax errors that I can't understand.
I'm going to use images (screenshots) to ilustrate my problems, I hope it's not a problem.
The first error is in this line (in an image so colors can be seen):
Error: TDSE.F77 contains syntax errors and may not be refactored correctly. Resource: TDSE.F77 Path: src/ TDSE.F77 Location: line -1
I don't know why "size" is in a different color and in italics.
And the main problem that I'd like to solve is "linking" with include files. I mean, I have a lot of sintax errors because I declare variables with types defined in some external .h includes. I think photran is not considering this includes or not finding the files. I have this 2 CPP lines in my F77 code:
In project properties > Fortran General > Path and Symbols, in tab "Includes" I have set for GNU C++ "TDSE/Include" (workspace folder) and for Fortran "TDSE/Include/finclude" (workspace folder).
In project properties > Analysis/Refactoring these are my settings:
This is my project folder hierarchy:
Sorry for the length, I just tried to give the maximun info about my settings to make this clearer. Any help will be welcome. Thanks,