UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer moritzatconti
Observer
341 Views
Registered: ‎05-14-2019

error: use of undeclared identifier '__UINTPTR_TYPE__'

Jump to solution

Hi,

I'm having troubles synthesizing a project in SDx 2019.1

I'm trying to use the "ap_uint" and "ap_fixed" data types within one of my hardware functions for which I'm including their corresponding headers which then generates the aforementioned error message.

Initially I had the same problem as here which I "fixed" by adding the "-hls-target 1" flag to the sds++ compiler settings leaving me with the current error.

Best Regards

Moritz

0 Kudos
1 Solution

Accepted Solutions
Observer moritzatconti
Observer
229 Views
Registered: ‎05-14-2019

Re: error: use of undeclared identifier '__UINTPTR_TYPE__'

Jump to solution

Hi @hat541 

It seems like the error occurs even before my initial error so it didn't really solve something so I just removed the "-hls-target 1" again.
Another way might be altering the header file the error occurs in by adding (probably not recommended but seemed to work for me)

#ifndef __UINTPTR_TYPE__
#include "stdint.h"
#endif //__UINTPTR_TYPE__

Best regards

Moritz

0 Kudos
2 Replies
Visitor hat541
Visitor
251 Views
Registered: ‎04-09-2019

Re: error: use of undeclared identifier '__UINTPTR_TYPE__'

Jump to solution


I am having same issue. Have you solved it yet?

 

0 Kudos
Observer moritzatconti
Observer
230 Views
Registered: ‎05-14-2019

Re: error: use of undeclared identifier '__UINTPTR_TYPE__'

Jump to solution

Hi @hat541 

It seems like the error occurs even before my initial error so it didn't really solve something so I just removed the "-hls-target 1" again.
Another way might be altering the header file the error occurs in by adding (probably not recommended but seemed to work for me)

#ifndef __UINTPTR_TYPE__
#include "stdint.h"
#endif //__UINTPTR_TYPE__

Best regards

Moritz

0 Kudos