Knowledge Base Article

Global is external, but doesn't have external or weak linkage!

Description

Due to a problem in the HLS Compiler, you may see this error when you compile testbench code with your component and that testbench uses system library classes like fstream.

Resolution

To work around this problem, compile the testbench code with the Microsoft* compiler and then link it with the component 

CL /I%INTELFPGAOCLSDKROOT%\include /Fo /EHsc /tb.cppi comp.cpp tb.obj 

This problem is scheduled to fixed in a future release of the HLS Compiler.

Updated 2 months ago
Version 2.0
No CommentsBe the first to comment