Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Wierd compilation error for QT5 on VS2012
Qt 6.11 is out! See what's new in the release blog

Wierd compilation error for QT5 on VS2012

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 1.1k 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.
  • R Offline
    R Offline
    Raveendra
    wrote on last edited by
    #1

    I'm building QT app , having QT5 SDK, qt VS plugin 1.2.x and using Visual studio 2012. When i'm compiling the project I'm getting weird error like bellow,

    *C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(80): error C2146: syntax error : missing ';' before identifier 'IProvideClassInfo'
    1>C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(87): error C2146: syntax error : missing ';' before identifier 'IProvideClassInfo2'
    1>C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(94): error C2146: syntax error : missing ';' before identifier 'IProvideMultipleClassInfo'
    1>C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(101): error C2146: syntax error : missing ';' before identifier 'IOleControl'
    1>C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(108): error C2146: syntax error : missing ';' before identifier 'IOleControlSite'
    1>C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(115): error C2146: syntax error : missing ';' before identifier 'IPropertyPage'
    1>C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(122): error C2146: syntax error : missing ';' before identifier 'IPropertyPage2'
    1>C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(129): error C2146: syntax error : missing ';' before identifier 'IPropertyPageSite'
    1>C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(136): error C2146: syntax error : missing ';' before identifier 'IPropertyNotifySink'
    1>C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(143): error C2146: syntax error : missing ';' before identifier 'ISpecifyPropertyPages'
    1>C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(150): error C2146: syntax error : missing ';' before identifier 'IPersistMemory'
    1>C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(157): error C2146: syntax error : missing ';' before identifier 'IPersistStreamInit'
    1>C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(164): error C2146: syntax error : missing ';' before identifier 'IPersistPropertyBag'
    1>C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(171): error C2146: syntax error : missing ';' before identifier 'ISimpleFrameSite'
    C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(1573): error C2371: 'IOleControlSite' : redefinition; different basic types
    1> C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(108) : see declaration of 'IOleControlSite'
    1>C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(1729): error C2371: 'IPropertyPage' : redefinition; different basic types
    1> C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(115) : see declaration of 'IPropertyPage'
    1>C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(1911): error C2371: 'IPropertyPage2' : redefinition; different basic types
    1> C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(122) : see declaration of 'IPropertyPage2'
    1>C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(2079): error C2371: 'IPropertyPageSite' : redefinition; different basic types
    1> C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(129) : see declaration of 'IPropertyPageSite'
    1>C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(2191): error C2371: 'IPropertyNotifySink' : redefinition; different basic types
    1> C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(136) : see declaration of 'IPropertyNotifySink'
    1>C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(2291): error C2371: 'ISpecifyPropertyPages' : redefinition; different basic types
    1> C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(143) : see declaration of 'ISpecifyPropertyPages'
    1>C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(2373): error C2371: 'IPersistMemory' : redefinition; different basic types
    1> C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(150) : see declaration of 'IPersistMemory'
    1>C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(2532): error C2371: 'IPersistStreamInit' : redefinition; different basic types
    1> C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(157) : see declaration of 'IPersistStreamInit'
    1>C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(2660): error C2371: 'IPersistPropertyBag' : redefinition; different basic types
    1> C:\Program Files\Windows Kits\8.0\Include\um\ocidl.h(164) : see declaration of 'IPersistPropertyBag **

    What would be the causing this problem ? How to troubleshoot this problem ?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved