IDE Preferences

When I delete a project why does the system not delete the underlying
files by default?

More importantly to me, how can I change this default behavour?

I’m sorry, there is no way to make delete from the file system option as a
default one. You should to select it. I think there is some reason in this
behavior.

“Bill Caroselli” <qtps@earthlink.net> wrote in message
news:bhj0p6$b32$1@inn.qnx.com

When I delete a project why does the system not delete the underlying
files by default?

More importantly to me, how can I change this default behavour?

Alex Chapiro <achapiro@qnx.com> wrote:
AC > I’m sorry, there is no way to make delete from the file system option as a
AC > default one. You should to select it. I think there is some reason in this
AC > behavior.

AC > “Bill Caroselli” <qtps@earthlink.net> wrote in message
AC > news:bhj0p6$b32$1@inn.qnx.com

When I delete a project why does the system not delete the underlying
files by default?

More importantly to me, how can I change this default behavour?

The problem is that if you forget to do it, it leave a lot of
stuff behind.

I have source code I’m porting from another vendor. I’m running the
IDE under Windows-XP. I’m getting unexpected compiler errors. It
turns out that the #if defined()'s that are in effect are for WNT.

Where in the IDE can I tell it what defines should be in place?

I think compiler has to do it. Can you provide a small test case?

“Bill Caroselli” <qtps@earthlink.net> wrote in message
news:bhr0gi$343$2@inn.qnx.com

I have source code I’m porting from another vendor. I’m running the
IDE under Windows-XP. I’m getting unexpected compiler errors. It
turns out that the #if defined()'s that are in effect are for WNT.

Where in the IDE can I tell it what defines should be in place?

Alex Chapiro <achapiro@qnx.com> wrote:
AC > I think compiler has to do it. Can you provide a small test case?

AC > “Bill Caroselli” <qtps@earthlink.net> wrote in message
AC > news:bhr0gi$343$2@inn.qnx.com

I have source code I’m porting from another vendor. I’m running the
IDE under Windows-XP. I’m getting unexpected compiler errors. It
turns out that the #if defined()'s that are in effect are for WNT.

Where in the IDE can I tell it what defines should be in place?

Well I did solve the initial problem. But the question is sill,
if I want to define __MY_OPTION where can I set that in the IDE.

In a makefile I would just add:
-D __MY_OPTION
to the qcc compile line.

Bill Caroselli <qtps@earthlink.net> wrote:

Well I did solve the initial problem. But the question is sill,
if I want to define __MY_OPTION where can I set that in the IDE.

In a makefile I would just add:
-D __MY_OPTION
to the qcc compile line.

Assuming you’re talking about a QNX C/C++ Project.
(For standard make, you’d add it in you Makefile.)

Under 6.2.1B:

Select your project.
Right-click in the C/C++ Projects view → Properties
Click on “QNX C/C++ Project”
Select the “Compile” tab.
There should be a text field on this page labelled with “Definitions”.
Type in __MY_OPTION there.

In the “compilation options” field, you should see appear “-D__MY_OPTION”.

This will be done for all the source files in the project.

(If you only need to do it for one source file in the project, and have to
have it NOT defined for others, I have no idea how to do that.)

For earlier 6.2.1 versions, I think the path to do this is similar, if not
exactly the same.

-David

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

(If you only need to do it for one source file in the project, and have to
have it NOT defined for others, I have no idea how to do that.)

To do that just click Advanced button and select the file you want to
specify definition for. Then do the same you described for the project.

This worked. Thanks.

David Gibbs <dagibbs@qnx.com> wrote:

DG > Under 6.2.1B:

DG > Select your project.
DG > Right-click in the C/C++ Projects view → Properties
DG > Click on “QNX C/C++ Project”
DG > Select the “Compile” tab.
DG > There should be a text field on this page labelled with “Definitions”.
DG > Type in __MY_OPTION there.

DG > In the “compilation options” field, you should see appear “-D__MY_OPTION”.

DG > This will be done for all the source files in the project.

In the IDE editor, is it possible to search for a matching parentisis
or brace, etc?

Yes. If you move your cursor into the position after { or ( or [ , editor
draws rectangle around corresponding } or ) or ]. And vice versa.

“Bill Caroselli” <qtps@earthlink.net> wrote in message
news:bhtcki$sj5$1@inn.qnx.com

In the IDE editor, is it possible to search for a matching parentisis
or brace, etc?

Alex Chapiro <achapiro@qnx.com> wrote:

Yes. If you move your cursor into the position after { or ( or [ , editor
draws rectangle around corresponding } or ) or ]. And vice versa.

Which doesn’t help if the matching brace/parentheis/etc is scrolled
off the screen.

Is it possible to do a “go to matching” for the current one when it
is off the screen?

(The equivalent of the % command in vi.)

-David

“Bill Caroselli” <> qtps@earthlink.net> > wrote in message
news:bhtcki$sj5$> 1@inn.qnx.com> …
In the IDE editor, is it possible to search for a matching parentisis
or brace, etc?


QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

Actually it works: just scroll using mouse :slight_smile:)).
I think it’s possible to implement, but better to ask CDT guys about that.

“David Gibbs” <dagibbs@qnx.com> wrote in message
news:bhtmbu$k9o$2@nntp.qnx.com

Alex Chapiro <> achapiro@qnx.com> > wrote:
Yes. If you move your cursor into the position after { or ( or [ ,
editor
draws rectangle around corresponding } or ) or ]. And vice versa.

Which doesn’t help if the matching brace/parentheis/etc is scrolled
off the screen.

Is it possible to do a “go to matching” for the current one when it
is off the screen?

(The equivalent of the % command in vi.)

-David

“Bill Caroselli” <> qtps@earthlink.net> > wrote in message
news:bhtcki$sj5$> 1@inn.qnx.com> …
In the IDE editor, is it possible to search for a matching parentisis
or brace, etc?


\

QNX Training Services
http://www.qnx.com/support/training/
Please followup in this newsgroup if you have further questions.

In long source files it is easy to miss the little box it draws around
the matching character.


Alex Chapiro <achapiro@qnx.com> wrote:
AC > Actually it works: just scroll using mouse :slight_smile:)).
AC > I think it’s possible to implement, but better to ask CDT guys about that.

AC > “David Gibbs” <dagibbs@qnx.com> wrote

Alex Chapiro <> achapiro@qnx.com> > wrote:
Yes. If you move your cursor into the position after { or ( or [ ,
AC > editor
draws rectangle around corresponding } or ) or ]. And vice versa.

Which doesn’t help if the matching brace/parentheis/etc is scrolled
off the screen.

Is it possible to do a “go to matching” for the current one when it
is off the screen?


“Bill Caroselli” <> qtps@earthlink.net> > wrote
In the IDE editor, is it possible to search for a matching parentisis
or brace, etc?

Bill Caroselli <qtps@earthlink.net> wrote:
BC > In long source files it is easy to miss the little box it draws around
BC > the matching character.


Also dealing with long source files:

It would be nice if while scrolling through long source files with many
functions the outline would follow the cursor by highlighting the
function that cursor is currently in.

Is this currently possible?

If not, it should be added to the wish list.

Yes, you can add it to your wish list.

“Bill Caroselli” <qtps@earthlink.net> wrote in message
news:bi00ka$1os$1@inn.qnx.com

Bill Caroselli <> qtps@earthlink.net> > wrote:
BC > In long source files it is easy to miss the little box it draws
around
BC > the matching character.


Also dealing with long source files:

It would be nice if while scrolling through long source files with many
functions the outline would follow the cursor by highlighting the
function that cursor is currently in.

Is this currently possible?

If not, it should be added to the wish list.