Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Moving from VS2008 to VS2010, now 'intrin.h' fails to compile

Moving from VS2008 to VS2010, now 'intrin.h' fails to compile

Scheduled Pinned Locked Moved C / C++ / MFC
csharpvisual-studiohelpquestion
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    eight
    wrote on last edited by
    #1

    The project compiles correctly in VS2008, but not with 2010. The error is 1>c:\program files\microsoft visual studio 10.0\vc\include\intrin.h(1065): error C2143: syntax error : missing ')' before 'constant' 1>c:\program files\microsoft visual studio 10.0\vc\include\intrin.h(1065): error C2143: syntax error : missing ';' before 'constant' 1>c:\program files\microsoft visual studio 10.0\vc\include\intrin.h(1065): error C2059: syntax error : ')' pointing to

    __MACHINEI(void __cpuid(int a[4], int b))
    __MACHINEI(void __cpuidex(int a[4], int b, int c)) <== this is the line that's giving me compile error
    __MACHINEI(unsigned __int64 __readpmc(unsigned long a))

    Any ideas?

    _ K 2 Replies Last reply
    0
    • E eight

      The project compiles correctly in VS2008, but not with 2010. The error is 1>c:\program files\microsoft visual studio 10.0\vc\include\intrin.h(1065): error C2143: syntax error : missing ')' before 'constant' 1>c:\program files\microsoft visual studio 10.0\vc\include\intrin.h(1065): error C2143: syntax error : missing ';' before 'constant' 1>c:\program files\microsoft visual studio 10.0\vc\include\intrin.h(1065): error C2059: syntax error : ')' pointing to

      __MACHINEI(void __cpuid(int a[4], int b))
      __MACHINEI(void __cpuidex(int a[4], int b, int c)) <== this is the line that's giving me compile error
      __MACHINEI(unsigned __int64 __readpmc(unsigned long a))

      Any ideas?

      _ Offline
      _ Offline
      _Superman_
      wrote on last edited by
      #2

      Simply including intrin.h goes no error in VS2010. Just tried that in an MFC SDI application.

      «_Superman_»
      I love work. It gives me something to do between weekends.

      Microsoft MVP (Visual C++)

      Polymorphism in C

      E 1 Reply Last reply
      0
      • _ _Superman_

        Simply including intrin.h goes no error in VS2010. Just tried that in an MFC SDI application.

        «_Superman_»
        I love work. It gives me something to do between weekends.

        Microsoft MVP (Visual C++)

        Polymorphism in C

        E Offline
        E Offline
        eight
        wrote on last edited by
        #3

        I didn't include 'intrin.h' in my code.

        1 Reply Last reply
        0
        • E eight

          The project compiles correctly in VS2008, but not with 2010. The error is 1>c:\program files\microsoft visual studio 10.0\vc\include\intrin.h(1065): error C2143: syntax error : missing ')' before 'constant' 1>c:\program files\microsoft visual studio 10.0\vc\include\intrin.h(1065): error C2143: syntax error : missing ';' before 'constant' 1>c:\program files\microsoft visual studio 10.0\vc\include\intrin.h(1065): error C2059: syntax error : ')' pointing to

          __MACHINEI(void __cpuid(int a[4], int b))
          __MACHINEI(void __cpuidex(int a[4], int b, int c)) <== this is the line that's giving me compile error
          __MACHINEI(unsigned __int64 __readpmc(unsigned long a))

          Any ideas?

          K Offline
          K Offline
          KarstenK
          wrote on last edited by
          #4

          install the new SDK. Press F1 for help or google it. Greetings from Germany

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups