Results 1 to 3 of 3

Thread: creating an accessible <> header file from includepath

  1. #1
    Join Date
    Nov 2010
    Posts
    20
    Thanks
    2
    Qt products
    Qt4

    Default creating an accessible <> header file from includepath

    Hi, I'm new to Qt been using Eclipse for a while and could use a pointer on include .hpp files in my main app.
    I'll setup my includepath then kind of stumble through accessing through <>

    .pro file
    INCLUDEPATH += "C:\\MinGW\\include\\GL\\"

    main.cpp
    <GL\\glut.h>

    Get an error: Cannot find GL/glut.h

    Regards
    T1001
    All Your Base Are Belong To Us

  2. #2
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,536
    Thanked 284 Times in 279 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: creating an accessible <> header file from includepath

    INCLUDEPATH += "C:\\MinGW\\include\\"
    or
    #include <glut.h>

  3. #3
    Join Date
    Nov 2010
    Posts
    20
    Thanks
    2
    Qt products
    Qt4

    Default Re: creating an accessible <> header file from includepath

    INCLUDEPATH += "C:\\MinGW\\include\\GL\\"
    #include<glut.h>

    got it. Thx for pointing me in the right direction.
    All Your Base Are Belong To Us

Similar Threads

  1. Facing problem in creating new cpp and Header file
    By parulkalra14 in forum Qt Programming
    Replies: 20
    Last Post: 6th February 2014, 09:01
  2. Problem creating accessible interface
    By bouchebeu in forum Qt Programming
    Replies: 1
    Last Post: 4th October 2013, 09:54
  3. Replies: 4
    Last Post: 2nd October 2013, 13:57
  4. Migrating content from header file to source file
    By ehnuh in forum Qt Programming
    Replies: 2
    Last Post: 3rd October 2012, 17:00
  5. Replies: 2
    Last Post: 20th May 2010, 13:42

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.