cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Highlighted
Participant
Participant
1,744 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
Highlighted
Participant
Participant
1,632 Views
Registered: ‎05-14-2019

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

View solution in original post

0 Kudos
2 Replies
Highlighted
Visitor
Visitor
1,654 Views
Registered: ‎04-09-2019


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

 

0 Kudos
Highlighted
Participant
Participant
1,633 Views
Registered: ‎05-14-2019

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

View solution in original post

0 Kudos