-mcmodel

don't use -fpic and -mcmodel together with version 10 compiler

Version 10 of the Intel compiler for Intel 64 Linux does not support the use of both -fpic and -mcmodel medium (or -mcmodel large) on the same command line.
  • Linux*
  • C/C++
  • Fortran
  • Compilatore C++ Intel®
  • Compilatore Fortran Intel®
  • 64-bit Coding
  • shared objects
  • -fpic
  • -mcmodel
  • ClosedSWDefect
  • Avoiding Relocation Errors when Building Applications with Large Global or Static Data on Intel64 Linux

    Applications with >2GB of static or global data should be built with –mcmodel=medium –shared-intel on Intel64 Linux*. If linked with static libraries, these should also be built with –mcmodel=medium. Else, "relocation truncated to fit" errors may occur.
  • Sviluppatori
  • Linux*
  • C/C++
  • Fortran
  • Compilatore C++ Intel®
  • Intel® C++ Composer XE
  • Compilatore Fortran Intel®
  • Intel® Fortran Composer XE
  • -mcmodel
  • memory model
  • relocation
  • Iscriversi a -mcmodel