Is qset.h header file generated implicitly by Qt creator?



  • when i execute my simple Qt widget application following error is occurring frequently even though i have not included qset.h file.
    error:
    C:\Qt\Qt5.2.0\5.2.0\msvc2012_64\include\QtCore\qset.h:283: error: C1070: mismatched #if/#endif pair in file 'c:\qt\qt5.2.0\5.2.0\msvc2012_64\include\qtcore\qset.h'

    i would be glad to know about this qset.h file.


  • Moderators

    welcome to devnet

    Please edit your post and give a meaningful title. Most of the posts are looking for help.

    "QSet is a class of Qt":http://qt-project.org/doc/qt-5/qset.html and qset.h is defining it.



  • Thanks koahnlg for your information.But i could not convince myself that even i have not included qset.h header file on my project it is still showing error in something else's header file.


  • Moderators

    qset.h is not implicitly included by qt creator.
    You might include it with another include file.

    However, you need to give more information. Some of your code would be helpful. Also What you have installed and the kind of compiler you are using.

    Crystal ball reading is often requested, but there is nobody in the forum good at it.



  • well i was designing apps that can store,add and delete contacts with name and address referring example which is already on Qt designer 5.2.0 which right now i am using.
    when i found that same error is occurring consistently then i copied exact code form Qt examples on my project and still showing error like this:

    main.obj:-1: error: LNK2019: unresolved external symbol "int __cdecl qInitResources_application(void)" (?qInitResources_application@@YAHXZ) referenced in function main

    by the way i am using visual c++ compiler 11.0


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.