Is anyone else having problems with Fortran COMMON blocks not being 'common' when compiled with Intel Fortran 10.1.007, then linked with mixed C/C++ shared libraries?
Using Xcode 2.4.1 and Intel Fortran 10.1.007, COMMON blocks that are in one dylib get properly referenced from another dylib, i.e. there's only one instance of the COMMON block symbols.
However, using the same compiler/linker flags but switching to Xcode 3.0, my common blocks are no longer common - each dylib that references them get their *own* copies.
I'm not using the Xcode 3.0 IDE, all my building is done from the command line; I am using the gcc linker to link. Since this worked fine with Xcode 2.4.1, my tests point at it being an issue to take up with Apple, but I wanted to see if others have encountered the problem.
For what it's worth, I see the identical problem on PowerPC using the Absoft Pro Fortran 9.2 compiler.