#258 inclusion of both emmintrin.h and windows.h fails g++

open-postponed
nobody
header (101)
5
2012-01-19
2011-12-17
spamwax
No

It seems the bug reported here still persists
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=633552

How to reproduce:
test.cpp
----------------------------------------------
#include <emmintrin.h>
#include <windows.h>

int main(int argc, char **argv)
{
return 0;
}

----------------------------------------------

x86_64-w64-mingw32-g++ test.cpp

In file included from c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw32/include/winnt.h:1442:0, from c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw32/include/windef.h:137, from c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/../../../../x86_64-w64-mingw32/include/windows.h:59, from test.cpp:2:
c:\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.6.3/include/emmintrin.h:234:1: error: previous declaration of '__m128d _mm_add_sd(__m128d, __m128d)' with 'C++' linkage

$ x86_64-w64-mingw32-g++ --version
x86_64-w64-mingw32-g++ (GCC) 4.6.3 20111208 (prerelease)

Discussion

  • Jacek Caban

    Jacek Caban - 2012-01-06

    The fix is in trunk for a while now, so this is probably fixed.

     
  • Kai Tietz

    Kai Tietz - 2012-01-19

    Hmm, we discurage people to use instrincs-headers directly. As solution here we encourage to use instead simply the intrin.h header.

     
  • Kai Tietz

    Kai Tietz - 2012-01-19
    • status: open --> open-postponed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks