- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
I have a PSoC Creator Workspace with several projects. There are no dependancies between the projects, but they use common functions, etc collected into header files.
Those headers are located in the workspace root directory, one level above the project directory. The files are added to each projects header collection (Project-> Add existing item...), and the compiler custom search path is set to "${ProjectDir}\..\".
This enables the project to be build correctly, but the problem is that the code editor still complains that the file could not be found (error mark on the line with the #include statement). Also right-clicking on the statement and selecting "go to definition / declaration" doesn't work.
This is also true for the automatically generated files (e.g. project.h) as well as the symbols defined in headers, etc.
Is this a bug or do I have some wrong settings? For me, this behaviour is really annoying.
Regards,
Ralf
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Add the path in Build Settings -> Compiler->General -> Additional Include Directories.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Add the path in Build Settings -> Compiler->General -> Additional Include Directories.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Bob,
as I wrote above, compiler search path already set up correctly, otherwise the project won't compile. But it seems that the editor window doesn't take notice of it.
Regards,
Ralf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Are your "missing" files part of the project? This is what the IDE needs, so right click on "Header Files"->Add...->Existing Item and then select all your .h files the project needs. You may do something similar with "Source Files" and the .c sources.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Bob,
sorry for the late reply. Yes, the "missing" files are part of the project tree. It seems that only the editor window itself doesn't recognize that the files are part of the project.
Regards,
Ralf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
short update on this:
It seems that using '{ProjectDir}' in the path name will result in the above mentioned behavior. Removing it from the path name also removes the error mark. Seems that the editor window doesn't "understand" the '{ProjectDir}'.
Regards,
Ralf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Welcome in the forum.
Check your access rights on drive D which should be a real drive and not a network drive. Try to install as Admin.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Bob,
The drive is not a network drive. It is a real drive and the user which i am logged on is the administrator.
I have full rights. I tried installing as Admin but the error persists.
Need Urgent help to resolve this.
Thank you for the reply!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Did you try (after a de-installation) to install at the defaulted location?
When all fails, get in contact with Cypress directly: At top of this page select "Design support -> Create a Support Case" and ask your question. You will be helped by a Cypress engineer.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content