Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16558 Discussions

error: assigning to 'int *' from incompatible type 'void *' strICtLy_conFidEnTial[strICtlY_CoNfidEnT

syam404
Beginner
3,148 Views

polar_hls_compilation.png

HLS compilation of polar ip generates these errors. How to remove these. Please help us.

 

Regards,

Syam

0 Kudos
7 Replies
syam404
Beginner
3,123 Views

@Altera_Forum  please look this problem I am trying it out from two weeks.

 

Regards,

Syam

0 Kudos
BoonBengT_Intel
Moderator
3,072 Views

Hi @syam404,

 

Thank you for posting in Intel community forum, hope all is well and apologies for the delayed in response.
My guess is that there should be a casting required in this case.
Hence would suggest to following changes to your code:
- Old code : int *VERY_toP_SEcRET = stRicTlY_ConfiDeNtial(sizeof(int)..
- New code : int *VERY_toP_SEcRET = (int*)stRicTlY_ConfiDeNtial(sizeof(int)..

 

Hope that clarify, and please do share the code snippet if I misunderstand the situation.
Best Wishes
BB

0 Kudos
syam404
Beginner
3,068 Views

- Old code : int *VERY_toP_SEcRET = stRicTlY_ConfiDeNtial(sizeof(int)..
- New code : int *VERY_toP_SEcRET = (int*)stRicTlY_ConfiDeNtial(sizeof(int)..

Thank you sir 6 errors got resolved one error is remained

Screenshot (242).png

 

Regards,

Syam

0 Kudos
syam404
Beginner
3,063 Views

this error in 231 is different from other errors could please say how it could be resolved

 

Regards,

Syam

0 Kudos
BoonBengT_Intel
Moderator
3,042 Views

Hi @syam404,

 

Based on the error message, the variable stRicTlY_ConfiDeNtial are already in the correct type.
Please remove the casting for that line of code and see if there is a different error.

If based on the previous screenshot where the void* error are coming up, double check on the function where the line #231 are, to ensure there is a return type declare is that is what is intended.
Hope that clarify.

 

Best Wishes
BB

0 Kudos
BoonBengT_Intel
Moderator
3,015 Views

Hi @syam404,

 

Good day, just checking in to see if there is any further doubts in regards to this matter.
Hope we have clarify your doubts.

Best Wishes
BB

0 Kudos
BoonBengT_Intel
Moderator
2,965 Views

Hi @syam404,

 

Greetings, as we do not receive any further clarification on what is provided, we would assume challenge are resolved. Hence thread will no longer be monitored. For new queries, please feel free to open a new thread and we will be right with you. Pleasure having you here.

Best Wishes
BB

0 Kudos
Reply