There is a framework concept in the OSX development environment. A structure is a kind of package that contains headers, shared libraries, and other useful materials. The structure can be passed to the compiler, so the compiler includes its headers in the search path and uses its shared libraries to link programs to them.
So, for example, if -framework FrameworkNamegcc or clang is passed to OSX, the compiler searches the directory /System/Library/Frameworksto find the directory FrameworkName.framework. If found, the compiler includes its headers and associates the program with its shared libraries.
So does this super useful feature work on Linux? Gcc or clang recognize parameter -frameworkin Linux? When I type this option on Linux, the compiler does not seem to recognize it, but perhaps this is because I need to set the path to the frameworks directory in front of it. Is there any special trick to make it work on Linux? Or is it definitely not possible on this platform?
source
share