#3 Fortran include not opened

closed
nobody
None
5
2004-06-29
2004-05-01
Jean-Marc Vanel
No

On RedHat Fedora I had a problem with Fortran include
not opened.
gcc --version
gcc (GCC) 3.3.2 20031022 (Red Hat Linux 3.3.2-1)

I found that the following change in function
open_included_file(char *filename)
solved the problem :

dl_traverse(tmp, include_paths) {
prefix = (char *)dl_val(tmp);
full_file = (char *)f2jrealloc(full_file,
strlen(prefix) + strlen(filename) + 2); /*
>>>>>>> jmv: 1==> 2 */

strcpy(full_file, prefix);
strcat(full_file, FILE_DELIM);
strcat(full_file, filename);

Discussion

  • Keith Seymour
    Keith Seymour
    2004-06-29

    • status: open --> closed
     
  • Keith Seymour
    Keith Seymour
    2004-06-29

    Logged In: YES
    user_id=472440

    Thanks for the bug report. I have committed this fix.
    keith