I have the following fortran program: program test
C_EXTERNAL CTEST 'ctest' (REF) : INTEGER*4
character*11 string
integer*4 returnval
data string /'test phrase'/
write(*, 102) string
returnval = CTEST(string)
write(*, 103) returnval
102 format('here is the string written from fortan code: ', a11) 103 format('here is the returned valued from c code: ', i8)
end
And the following C program: #include <stdio.h> #include<stdlib.h>
extern 'C' long int ctest (char *temp, long int ctestLength) { printf('Here is the string written from c code: %s\n', temp); return 1; }
In Plato, when building with the Checkmate Win32 option, I get the link warning: WARNING the following symbols are missing: ctest C:\forttest\CheckMate\Win32\fortcode.obj (C:\FORTTEST\FORTCODE.FOR)
With the Debug Win32 option, no warnings are issued, and the program runs fine. What differences between Checkmate Win32 and just Debug Win32 could cause this problem?
Thanks