cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Newbie
Newbie
299 Views
Registered: ‎11-20-2020

Vivado HLS compile order

Jump to solution

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.

0 Kudos
Reply
1 Solution

Accepted Solutions
Instructor
Instructor
275 Views
Registered: ‎10-23-2018

@Huichelaar 

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.

View solution in original post

1 Reply
Instructor
Instructor
276 Views
Registered: ‎10-23-2018

@Huichelaar 

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.

View solution in original post