Results 1 to 4 of 4

Thread: Missing include file <qstd.h>

  1. #1
    Join Date
    Jun 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Missing include file <qstd.h>

    Hi Everyone, This would be my first time using a programming forum - so appolagies for my noobness in advanced!!

    I am learning Qt4 on Windows with the book "Introduction to Design Patterns in C++ with Qt4" which seems popular.

    One of the problems introduces "namespace qstd;". From what I have read, this namespace requires an include file <qstd.h>. When i Add the following line of code into my program;

    using namespace qstd.h
    I get the following Error:

    qstd.h: No such file or directory
    After searching for qstd.h throughout my Qt directories, it seems that I dont have this header!! This seems bizzar to me =?

    can anyone can point out some serious flaws in my methods (which I know is likley) ?? Otherwise if this all seems legit, I would very much appreciate if someone could send me the header file (couldnt find one with a basic google search)

    thanks a lot for your time.
    Ilia

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Missing include file <qstd.h>

    Qt Code:
    1. #include "qstd.h"
    2. using namespace qstd;
    To copy to clipboard, switch view to plain text mode 
    The content of qstd.h is in example 20.12 of my copy of the book... it is not part of Qt.

  3. #3
    Join Date
    Jun 2012
    Posts
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Missing include file <qstd.h>

    Thanks for the response, it was what I was looking for!

  4. #4
    Join Date
    Jun 2012
    Location
    Iran , Tehran
    Posts
    93
    Thanks
    5
    Platforms
    Unix/X11 Windows Android

    Default Re: Missing include file <qstd.h>

    namespace is name of a code block and by command using namespace you can declear a block of codes that have a specific name.
    Example:
    Qt Code:
    1. namespace myns
    2. {
    3. int num;
    4. }
    To copy to clipboard, switch view to plain text mode 
    in other places you can use this integer variable by follow:
    for ex:
    Qt Code:
    1. myns::num=12;
    To copy to clipboard, switch view to plain text mode 
    Life is about making the right decisions and moving on.

Similar Threads

  1. xsd validation, xs:include missing ?
    By Kouillo in forum Qt Programming
    Replies: 1
    Last Post: 4th April 2012, 11:26
  2. Replies: 1
    Last Post: 23rd May 2011, 04:53
  3. Replies: 3
    Last Post: 1st November 2010, 16:33
  4. Replies: 4
    Last Post: 9th May 2010, 16:18
  5. build fails: krb5.h include file missing
    By paulocarvalho_br_2009 in forum Installation and Deployment
    Replies: 2
    Last Post: 24th May 2009, 16:13

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.