Quoted from Sebastian
Open the help file as usual (as in your screenshot), then click on Contents (upper left) and check the entries for 'Win32 platform'.
[size=18:65b5cb69ed]Thankyou excruciatingly, Sebastian![/size:65b5cb69ed] That certainly did the trick 😃 I had everything crossed, waiting for the error messages, but none appeared! Beautiful.
For the benefit of any who may follow in our keystrokes, here is the final state-of-play (any fans of Michael Nyman here?):
Fortran file, test.f:
C program calls C++ 'Multiply' which forms the product of two integers,
C m and n, and returns result in k.
C
C_EXTERNAL MULTIPLY 'Multiply' (REF,REF,REF):integer*4
C
character ch*1
C
m=-2
n=4008
call MULTIPLY(m, n, k)
C
write(*,11) k
11 format(' k = ',i6)
read(*,21) ch
21 format(a1)
stop
end
C++ file, multiply.c:
extern 'C' void Multiply(int *m, int *n, int *k)
{
// Compute the product of m and n, return in k
int k1;
int k2;
k1=*m;
k2=*n;
*k=k1*k2;
return;
}
Then the following sequence of commands:
Note: ... represents a path spec. Screen output not shown.
Thankyou excruciatingly, Sebastian![/size:65b5cb69ed] That certainly did the trick 😃 I had everything crossed, waiting for the error messages, but none appeared! Beautiful.
For the benefit of any who may follow in our keystrokes, here is the final state-of-play (any fans of Michael Nyman here?):
Fortran file, test.f:
C program calls C++ 'Multiply' which forms the product of two integers,
C m and n, and returns result in k.
C
C_EXTERNAL MULTIPLY 'Multiply' (REF,REF,REF):integer*4
C
character ch*1
C
m=-2
n=4008
call MULTIPLY(m, n, k)
C
write(*,11) k
11 format(' k = ',i6)
read(*,21) ch
21 format(a1)
stop
end
C++ file, multiply.c:
extern 'C' void Multiply(int *m, int *n, int *k)
{
// Compute the product of m and n, return in k
int k1;
int k2;
k1=*m;
k2=*n;
*k=k1*k2;
return;
}
Then the following sequence of commands:
Note: ... represents a path spec. Screen output not shown.
[quote:65b5cb69ed]
... \FTN95>ftn95 test.f
... \FTN95>scc multiply.c
... \FTN95>slink test.obj multiply.obj
All of which produced the executable file test.exe, which performed as desired.
**Thankyou to all who have made this possible **:)
Eric