Marinier, M. Claude, G. wrote:
I am using GNU Pascal 2.1 (19991030) on Solaris 2.7 from a package.
I am porting a graphics package from DEC Pascal on VMS to GNU Pascal on Solaris. The package is used with many Fortran programs. The conversion is almost complete. All five levels of the package compile and all the Pascal test programs I have build so far run OK. I cannot get the Fortran test programs to link. The linker cannot find the graphics package entry points. For example
'undefined reference to init_'
I have found a lot of information about calling from Pascal but nothing so far that help me to call from Fortran to Pascal.
Can someone point me to the appropriate documentation?
In the upcoming release, the mechanism for including Pascal code into C programs is changed and documented with examples. For Fortran, it should be similar (if you know how to call C code from Fortran, you should get along -- I don't know Fortran, so I can't give any details).
Frank