PDA

View Full Version : Referencing environment variables in eclipse integration project



kristoczaj
23rd February 2011, 12:31
I am trying to use boost in an QT Eclipse Integration project. I got an example to compile, but the indexer see the boost directory.

Here's my .pro file:

TEMPLATE = app
TARGET = qtest

BOOST_VER = 1_45_0

QT += core gui
INCLUDEPATH += "$$(BOOST)/include/boost-$$BOOST_VER"
LIBS += -L"$$(BOOST)/lib/boost-$$BOOST_VER"
HEADERS += qtest.h
SOURCES += main.cpp \
qtest.cpp
FORMS += qtest.ui
RESOURCES +=


BOOST is an environment variable pointing to the boost directory, and I would like to use that variable everywhere I reference it.

How can I make the indexer see the boost dir? In other words, how do I use this environment variable in Project->Properties->C++ Include paths and symbols?

Regards,
Kris

kristoczaj
25th February 2011, 15:08
Does noone know the answer, or did I ask in an invalid way?