> Message: 1
> From: "Luke Dunstan" <coder_infidel@...>
> ----- Original Message -----
> From: "Dominique Orban" <dominique.orban@...>
> Subject: [Mingw-msys] Msys and Fortran 90
> > 1. I have Digital Fortran and would like to use it. If you were to use
> > it from a regular Windows command window, you'd first have to execute
> > a batch file called DFVARS.BAT located in the Digital Fortran tree,
> > which sets environment variables used by the linker. From an MSYS
> > command prompt, how should I go about source-ing that batch file?
> > Trying to simply execute it results in error (e.g., the 'rem' commands
> > cause errors).
> You can't. You would have to convert it to a shell script, e.g. change "set
> FOO=bar" to "export FOO=bar".
Allright, but in most cases, that's not a viable option as batch files
make heavy use of goto statements (unfortunately), which doesn't have
a bash equivalent.
I found a workaround, which is to simply create a windows shortcut calling
cmd /K "sequence of commands"
in which the sequence of commands sources the batch file in question,
changes to c:\msys\1.0 and executes msys.bat. At least, that's working
Now Digital Fortran (or most Windows compilers for that matter)
accepts an option of the form
to include whatever files (headers, modules, etc.). Switches to
programs in Windows usually use the forward slash '/' but most
programs also accept the dash '-'. Now, from within msys, if you want
(with forward slashes), the compiler complains that it doesn't know
the switch "/msys".
This results, I am guessing, from expansion of /c/path. If i use the
backslash path separator, all works well.
Is there a way to be able to use forward slashes in the -I command-line option?