Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Mac dylib: hide common blocks?

Darrell
Beginner
376 Views
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
Fortran/C++/C.

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?
0 Kudos
0 Replies
Reply