Menu ▾ ▴

#26 Macro DEPRECATE fails on x64

closed
None
9
2012-10-31
2009-09-15
No

The _MSC_VER preprocessor branch of the DEPRECATE macro in DeprecationMgr.h fails when building a x64 version of the library. This is due to the _asm directive, which is generally not supported for x64 builds. For now, I recommend just to add a !defined(_M_X64) condition, which will then use the the fallback case, not using the ebp register.

[...]

include "Utilities.h"

// ==========================================================

if !defined(_M_X64) && defined(_MSC_VER)

#define DEPRECATE(a,b) \
{ \
    void *fptr; \
    _asm { mov fptr, ebp }  \
    DeprecationMgr::GetInstance()->AddDeprecatedFunction(a, b, fptr); \
}

elif defined(i386) && defined(GNUC)

#define DEPRECATE(a,b) \
{ \

[...]

Find a new version of file DeprecationMgr.h attached to this artifact.

Carsten

Discussion

  • Carsten Klein

    Carsten Klein - 2009-09-15

    New version of file DeprecationMgr.h

     
  • Hervé Drolon

    Hervé Drolon - 2009-09-20

    Fixed in the CVS

     
  • SourceForge Robot

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     

Anonymous
Anonymous

Add attachments
Cancel