Forum Discussion
Altera_Forum
Honored Contributor
8 years agoerror: Unexpected use of HDL library function(s)
Hi, I'm using the 16.1 SDK to develop an OpenCL library. After added a second input parameter to my function, I get this error message (twice): error: Unexpected use of HDL library f...
Altera_Forum
Honored Contributor
8 years agoUpon further testing, this seems to be related to the datatype. If I use "unsigned long" in the RTL library, I get the error. If I use "unsigned long long" it works. So there seems to be a mismatch of the inferred width between the different compiler parts. (I guess the vague C standard is partly to blame here, but a better error message would have saved me a lot of time).