Ignore:
Timestamp:
Aug 5, 2010, 2:16:20 PM (15 years ago)
Author:
ansari
Message:

Introduction et gestion du flag preprocesseur NEED_EXT_DECL_TEMP pour declaration extern des classes template avec instantiation explicite (pb dynamic_cast sur Mac OS 10.6), Reza 05/08/2010

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/BaseTools/machdefs_mkmf.h

    r3750 r3831  
    145145/*   DECL_TEMP_SPEC        : Template specialization declaration           */
    146146/*   TSNMLUPG4             : Two stage name look-up scheme (g++>3.4)       */
     147/*   NEED_EXT_DECL_TEMP    : extern declaration for template classes       */
    147148
    148149
     
    175176#undef TSNMLUPG4
    176177#endif
     178
     179
     180/*  Dynamic_cast problem encountered on Mac OS X 10.6 for explicitly instanciated classes across
     181    dynamic libraries. solved by extern declaration of  explicitly instanciated template classes */
     182#ifndef NEED_EXT_DECL_TEMP
     183#define NEED_EXT_DECL_TEMP
     184#endif
     185
    177186
    178187/* now the specific things */
     
    208217#define __CXX_PRAGMA_TEMPLATES__
    209218#define PRAGMA_TEMPLATES
     219#undef NEED_EXT_DECL_TEMP   /* old compiler version cxx 6.5 - we don't activate extern declaration */
    210220#endif
    211221
Note: See TracChangeset for help on using the changeset viewer.