CW10.1 for MCU's path issues...

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CW10.1 for MCU's path issues...

717 Views
CarlFST60L
Senior Contributor II

Hi,

 

Is there a way to do recursive path inclusion using this option "Properties > C/C++ General > Paths and Symbols > Languages > C Source File > Include Directories"? This also automatically adds them to my second method, but not as recursive..

 

This option appears to be the most correct way to do it.. I think?

"Adding Include paths and symbols

 

For CDT projects, you can define include paths and preprocessor symbols for the parser. This lets the parser understand the contents of the C/C++ source code so that you can more effectively use the search and code completion features."

 

The other method available, which does support recursive is this:

 

"Properties > C/C++ Build > Settings > Tool Settings > Cold Fire Compiler > Input > User Recursive Path (-ir).

 

When I do this method, folders cannot see other folders includes, it compiles just fine, but the IDE is not aware i.e. 

Sources/main/main.c

sources/main/main.h

sources/shell/shell.c

sources/shell/shell.h

What happens here is shell.c includes main.h, but the IDE shows 'unresolved inclusion', but shell.c can include shell.h as its in the same folder, the only way to fix this is to go back to the first method, but this requires EVERY folder to be added, which is no good when you have 50 projects and various versions and builds, it becomes un unmanageable.

 

Is there are third method that works properly?

Labels (1)
0 Kudos
Reply
2 Replies

301 Views
CrasyCat
Specialist III

Hello

 

Settings in Properties > C/C++ Build > Settings > Tool Settings > Cold Fire Compiler > Input" are valid only for the compiler. They are not taken into account by the IDE project manager.

 

There is no way to add recursive folders for the IDE project manager. You need to add each path separately.

If you want to get such an extension on the toolchain, you need to  submit a service request with type Feature Request on our on-line support web page.

 

Click here to submit a service request.

 

CrasyCat

0 Kudos
Reply

301 Views
CarlFST60L
Senior Contributor II

Thanks for the reply CrasyCat.

 

I think when you import/add/link a folder in a certain way it automatically add's all the folders here... Or, there is some way to tellt the IDE to search all the paths correctly to get the 'same outcome'. I have not quite worked out how, but I appear to have done it 'be fluke' at some point.

 

I have been having so many 'strange' issues with paths in CW10.1!

0 Kudos
Reply