I am using PGI compilers and just seem to be unable to assign Regular Expressions to Match Compilation Errors. Here is the example of error:
PGFTN-S-0023-Syntax error - unbalanced parentheses (C:\usr\SOURCE\DATES.F: 7)
and this is what I use:
^.+([A-Za-z]:[^:]+): +([0-9]+)
tried
^.+\(([A-Za-z]:[^:]+): +([0-9]+)\)
but no luck. I am NOT using POSIX regexp option in my Pref->Editor setup.
Regular Expressions to Match Compilation Errors for PGI
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
-
- Posts: 7
- Joined: Thu Mar 25, 2004 10:12 pm
-
- Posts: 2461
- Joined: Sun Mar 02, 2003 9:22 pm
-
- Posts: 7
- Joined: Thu Mar 25, 2004 10:12 pm
[quote="ben_josephs"]Your second regex does works, but it assumes Posix regex syntax.
If you must use non-Posix syntax (not recommended), swap the back-slashed and non-back-slashed parentheses.[/quote]
You are right. POSIX works. I guess I will use it for my other compiler need too, just need to do some editing.
Thanks.
If you must use non-Posix syntax (not recommended), swap the back-slashed and non-back-slashed parentheses.[/quote]
You are right. POSIX works. I guess I will use it for my other compiler need too, just need to do some editing.
Thanks.