Author Topic: Search directories  (Read 4060 times)

Offline johne53

  • Regular
  • ***
  • Posts: 253
Search directories
« on: July 31, 2007, 01:07:13 pm »
If I add some search directory paths (let's say for adding specific folders for my #include files) does C::B search the folders in the order in which I added them? If so, is it possible to change the order of the list, after the items have been added? I tried dragging & dropping (like you can do with MSVC++) but that doesn't work with C::B.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5529
Re: Search directories
« Reply #1 on: July 31, 2007, 01:46:08 pm »
yes you can.

In the project build options (project level or target level), in the search directories tab (eg for compiler), you will notice (say you have several include paths added) two little arrows at the right : select the path you want to move up or down, and press the corresponding arrow.

NOTE : I think there's a bug (tested on linux) : I am unable to 'move downwards' an entry. I can move it upwards and then back down to it's original position but not further down. Can anyone confirm this ????

Offline Albenejean

  • Multiple posting newcomer
  • *
  • Posts: 65
Re: Search directories
« Reply #2 on: July 31, 2007, 06:29:49 pm »
Quote
NOTE : I think there's a bug (tested on linux) : I am unable to 'move downwards' an entry. I can move it upwards and then back down to it's original position but not further down. Can anyone confirm this ????
Tested under Windows XP. It works...

Offline johne53

  • Regular
  • ***
  • Posts: 253
Re: Search directories
« Reply #3 on: July 31, 2007, 07:01:21 pm »
This one's rather more worrying - unless I'm doing something silly.....

1) Set up some compiler search directories in (say) the Linux version of C::B and save the project/workspace.
2) Open it up again - but this time in the Windows version. Notice that the search directories aren't displayed any more (this is probably reasonable, because they'd be meaningless under Windows).
3) Go back to the Linux version and open up the workspace again. Notice that all the search directories that you painstakingly set up have all gone - or at least, they're no longer visible.

They do seem to be getting remembered somewhere because in my case, the project still compiles correctly - even though its search directories had (apparently) been forgotten.

Offline johne53

  • Regular
  • ***
  • Posts: 253
Re: Search directories
« Reply #4 on: July 31, 2007, 07:22:25 pm »
I must admit, I'm baffled by what I just wrote....  I've looked in the ".cbp" file (i.e the XML project) and there's absolutely no reference to any of the search directories that I set up, earlier today. This morning, the project wouldn't compile without them - but it does compile now... :?:

Is there any kind of 'global' area where I could have set them up - i.e. an area that stores search directories to be used by every project?


[Edit...] Oops, there is a global settings dialog - and that's where I'd set up my search paths..!  :oops:

This begs the question - for cross platform development, should I be using URLs here (something like:-
file://[some_kind_of_volume_identifier]//[path_to_my_include_files] ?? )
« Last Edit: July 31, 2007, 08:11:02 pm by johne53 »