andreww / fox

A Fortran XML library
https://andreww.github.io/fox/
Other
60 stars 51 forks source link

Compilation error while linking fox_sax as a library #61

Closed Socanal closed 3 years ago

Socanal commented 5 years ago

I am trying to make use of sax libraries in the oorb program https://github.com/oorb/oorb but I am strugling with it. After linking the libraries in the make file, and only adding the use statement to the program USE FoX_sax (not any functions or subroutines) While compiling, I am getting the next error, which repets itself over 20 times.

../main/oorb.f90:31:12:

PROGRAM oorb 1 Error: Fortran 2003: Procedure pointer at (1)

Adding the USE statement to the only subroutine which use FoX functions reports me the same error, just changing the file where it pops up.

Maybe it is some problem with the linking of the library (which I will have to further investigate). It is difficult to explain the whole situation through here because it involve a quite complex Makefile, but I wanted to make sure if somebody faced this same issue before spending more time on it.

Thank you very much!

andreww commented 5 years ago

I don't recall seeing that error (and it doesn't look like a very useful error either). My guess is that the FoX module files are not being found correctly at compile time (rather than a linking problem) but that is very much a guess. Does:

./configure
make
make check

work in the directory where you have downloaded FoX, using the same compiler?

If you've not already, take a look at this documentation for some general suggestions on using FoX in an existing project.

andreww commented 3 years ago

I'm assuming this is fixed / worked around. Please reopen if not.