July 25, 2011

cmessineo cmessineo
Lab Rat
26 posts

#include <stddef.h> compiler error

 

Hi All, I’m new to Qt, I installed the newest sdk and tried creating a very basic Qt widget application -> Qt Gui application. Basically just a hello world type app. I get an error in gglobal.h file:

C:\QtSDK\Desktop\Qt\4.8.0\msvc2010\include\QtCore\qglobal.h:45: error: C1083: Cannot open include file: ‘stddef.h’: No such file or directory

I’m running Qt on Windows 7 box as an administrator. Thanks for your time and help.

3 replies

July 25, 2011

Vijay Bhaska Reddy Vijay Bhaska Reddy
Lab Rat
399 posts

Do you have MSVC installed in your machine???

July 25, 2011

cmessineo cmessineo
Lab Rat
26 posts

Thanks for the reply Vijay. No I don’t have MSVC installed. I take it you are referring to Microsoft Visual C++. What version do I need?

July 25, 2011

Vijay Bhaska Reddy Vijay Bhaska Reddy
Lab Rat
399 posts

mm.. as per your its says it should be “msvc2010” or the best thing is to use MinGW compiler as it comes pre-installed with Qt SDK. From your project properties select MinGW under Qt Version tab, and select MinGW under Edit build configuration also.

This should work..

 
  ‹‹ Help me!!! "error -14" while i install manual qt_installer.sis on my Nokia E61i      QMYSQL and CMAKE ››

You must log in to post a reply. Not a member yet? Register here!