Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Developer
Jeff_Lu
Posts: 384
Registered: ‎08-12-2008
My Device: 8700
Accepted Solution

how to set soruce path within IDE?

Hi All,

 

This is basical question for source path setting.

 

my project construct looks like:

 

src

----com

------------mypath

app.hpp

app.cpp

 

when I create new source under the mypath, and include it with app.hpp,

 

it always throw me an undefine reference while doing build project...

 

if i move them to the same folder as app.hpp, everything works fine.

 

I have checked project properties, and add include source, however there is no difference.

 

so how to set my source path?

 

Thanks.

 

Contributor
jamespaulmuir
Posts: 33
Registered: ‎04-26-2010
My Device: Z10 / PlayBook 16GB

Re: how to set soruce path within IDE?

In your {appname}.pro update the following lines:

 

SOURCES += ../src/*.cpp
HEADERS += ../src/*.hpp ../src/*.h

and add your custom paths:

 

SOURCES += ../src/*.cpp ../src/com/mypath/*.cpp
HEADERS += ../src/*.hpp ../src/*.h ../src/com/mypath/*.hpp ../src/com/mypath/*.h
Developer
Jeff_Lu
Posts: 384
Registered: ‎08-12-2008
My Device: 8700

Re: how to set soruce path within IDE?

Thanks a lot.....