PDA

View Full Version : creating an accessible <> header file from includepath



T1001
24th October 2017, 01:29
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

Lesiok
24th October 2017, 06:52
INCLUDEPATH += "C:\\MinGW\\include\\"
or
#include <glut.h>

T1001
24th October 2017, 17:39
INCLUDEPATH += "C:\\MinGW\\include\\GL\\"
#include<glut.h>

got it. Thx for pointing me in the right direction.