Mac dylib: hide common blocks?

Mac dylib: hide common blocks?

How do we hide Common blocks within a dynamic library from other dynamic
libraries? The the -fvisibility=hidden compiler flag appears to be
effective in hiding subroutines, functions, and methods--but not common
blocks. Our main driver program is C++ and the dynamic libraries are mixed

We're using Intel compilers version 10.0.020 for Fortran & C++ on an Intel Mac Pro running OS X 10.4.11.

If it's not possible from the compiler / dylib's point of view, would converting the common blocks to fortran 90 modules help?

p.s. the old post on dlopen should be in the FAQ. Is there a source of sample programs for Intel compilers like a simple dylib example? Is there a FAQ for this group?

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.