Re: fortran code for 'cp' / subroutine file_copy



meek@xxxxxxxxxxxxxxx wrote:
In a previous article, Carsten Lemmen <c.lemmen@xxxxxxxxxxxxx> wrote:

Hi all,

I would like to issue a copy operation from within my Fortran code. I
have been using the system intrinsic, however, some compilers do not
know about this intrinsic.



There is probably a way in your compiler to make a system
call. If you want it to work on *every* compiler, then
you will run into problems with the plethora of
compiler-dependent options in the open statements.
System call is the way to go , even if you have to make
a change for each compiler.
Chris
<snip>
But you can still have problems if you write code that might be used on a non-POSIX system. No matter what solution you find, one good approach is have one source file containing platform/compiler dependent code so that most of the messy portability stuff is in one place.

Joe
.



Relevant Pages

  • Re: Starting Forth, starting out.
    ... > f2c or link compiled Fortran code with compiled C code. ... The compiler isn't exactly like ANS, ... Leave the "classic" Forth to a compatibility mode. ...
    (comp.lang.forth)
  • Re: 2D arrays of variable size.
    ... This is precisely the calculation the compiler is doing when accessing 2d arrays. ... As a preliminary step, to extend their FORTRAN code to do what they want, and still remain readable to them, I have already changed the arrays to ...
    (microsoft.public.vc.language)
  • Re: Mixed language DLL support outside the IDE?
    ... Fortran code. ... Microsoft's C compiler and Intel's Fortran ... If I copy over the directory to a separate machine, ... How can I check DLL dependencies? ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: History of Computer Languages
    ... single-character mistake in a line of FORTRAN code. ... correct code should have said something like DO 99 ... the compiler did not throw any warning ...
    (alt.usage.english)
  • Re: Mixed language DLL support outside the IDE?
    ... I've a mixed language application running c# and DLL's of C++ and Fortran code. ... Microsoft's C compiler and Intel's Fortran compiler. ... If I create a setup project to install the new application on a separate machine, ... How can I check DLL dependencies? ...
    (microsoft.public.dotnet.languages.csharp)