#176 emmintrin.h and intrin.h linkage conflict

header (101)

Lots of these linkage errors:
c:\development\testing\mingw64-4.5.0-tdm64-1\bin\../lib/gcc/x86_64-w64-mingw32/4.5.0/include/emmintrin.h:234:1: error: previous declaration of '__vector(2) double _mm_add_sd(__vector(2) double, __vector(2) double)' with 'C++' linkage
c:\development\testing\mingw64-4.5.0-tdm64-1\bin\../lib/gcc/x86_64-w64-mingw32/4.5.0/../../../../x86_64-w64-mingw32/include/intrin.h:644:5: error: conflicts with new declaration with 'C' linkage


  • Jonathan Liu

    Jonathan Liu - 2010-06-19

    Code that fails to compile

  • rubenvb

    rubenvb - 2010-06-20

    This is to be expected. You should include windows.h (which includes intrin.h) BEFORE any GCC intrinsic headers. This is a necessary evil of providing both MS's intrin functions and GCC's *intrin.h headers.

  • Kai Tietz

    Kai Tietz - 2010-07-10

    We improved recently this issue, but as rubenvb explained, we are trying to have on one hand support of gcc-provided intrinsic headers and the intrinsic definitions provided by MS. So there isn't other chance to fix this issue, beside incuding either windows.h (which internally includes intrin.h), or direct intrin.h before.

    Therefore this bug gets closed as won't fix.

  • Kai Tietz

    Kai Tietz - 2010-07-10
    • status: open --> pending-wont-fix
  • SourceForge Robot

    • status: pending-wont-fix --> closed-wont-fix
  • 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).


Log in to post a comment.