Topic : Open header file from source file

Forum : Ride IDE

Original Post
Post Information Post
January 6, 2014 - 2:15pm
Guest

After creating new project and adding new file, I can add

#include 

to the file. It compiles but I can't view header content by or right click|Open

After adding

$(RKitInst)\arm-gcc\arm-none-eabi\include

to the "Include Directories" project options - and right click|Open start working and open correct string.h file.

Am I doing something wrong and it should work without this hack or it is expected behaviour?

Implicit search directories can be obtained by command for C

arm-gcc\bin>arm-none-eabi-gcc -Wp,-v -x c - -fsyntax-only

and for C++
arm-gcc\bin>arm-none-eabi-gcc -Wp,-v -x c++ - -fsyntax-only
Replies
Post Information Post
+1
0
-1
January 9, 2014 - 11:18pm
Guest

I'm also a newbie, so this is only my opinion, but ..
IDE, compiler, linker, core libs and peripheral libs may be from different sources, installed separately, so default fill for include search path shouldn't be a good idea. Especially when search path can contain different versions for the same-name files, so search order can be important. I think it's normal that user must "fine-tune" his/her include path.