11-22-2020 05:06 AM
Heya, I was wondering how I could set the order in which my source files are compiled in Vivado HLS? I'm getting unresolved symbol and 'struct-name' does not name a type errors due to header files, a, not being included in files, b, included in source files, c which do include a. Yet, when I include a in b it leads to conflicting declaration errors. Kinda damned if I do, damned if I don't here.
11-22-2020 07:47 AM
It sound like you need a 'header file guard' in your include file... e.g.
#indef _HEADERFILENAME_
#define _HEADFILENAME_
// contents of the header file
#endif
This will insure that the header file is only included once
Hope that Helps
If so, Please mark as solution accepted. Kudos also welcomed.
11-22-2020 07:47 AM
It sound like you need a 'header file guard' in your include file... e.g.
#indef _HEADERFILENAME_
#define _HEADFILENAME_
// contents of the header file
#endif
This will insure that the header file is only included once
Hope that Helps
If so, Please mark as solution accepted. Kudos also welcomed.