cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
christian.moncada
Participant
Participant
768 Views
Registered: ‎09-27-2017

SDSoC header files not found consistently throughout project

Jump to solution

I have an SDSoC project that targets a custom platform. That platform is using a BSP defined when making the software components in SDK. I added the BSP include directory in the build settings for the project, but the header files located in that directory are not always found. In my main file and in another file I include "xv_tpg.h", but the compiler only finds it for the main file. When trying to compile the second file I get a "file not found" error. I don't know why it would find the header for one of the files but not both. I've double checked for typos and looked at the compilation log to make sure the main file compiled without errors.

0 Kudos
1 Solution

Accepted Solutions
christian.moncada
Participant
Participant
650 Views
Registered: ‎09-27-2017

I solved my own problem. I have a mixture of .c and .cpp files in my project (inherited code) and I only updated the SDS++ compiler with the new include directory. I added the include path to the SDSCC compiler and it now finds the header files.

View solution in original post

0 Kudos
5 Replies
nutang
Moderator
Moderator
722 Views
Registered: ‎08-20-2018

Hi @christian.moncada 

This happens everytime you build the project?

 

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
christian.moncada
Participant
Participant
706 Views
Registered: ‎09-27-2017
Yes. I've tried cleaning and rebuilding a couple times with the same result.
0 Kudos
nutang
Moderator
Moderator
694 Views
Registered: ‎08-20-2018

Hi @christian.moncada 

Please let me know SDSoC version.

Also, is it possible to share the full log?

Best Regards,
Nutan
-------------------------------------------------------------------------------
Please don't forget to reply, kudo and accept as a solution
0 Kudos
christian.moncada
Participant
Participant
681 Views
Registered: ‎09-27-2017

2018.1

0 Kudos
christian.moncada
Participant
Participant
651 Views
Registered: ‎09-27-2017

I solved my own problem. I have a mixture of .c and .cpp files in my project (inherited code) and I only updated the SDS++ compiler with the new include directory. I added the include path to the SDSCC compiler and it now finds the header files.

View solution in original post

0 Kudos