Forum Discussion

syam404's avatar
syam404
Icon for New Contributor rankNew Contributor
4 years ago

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

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

Regards,

Syam

7 Replies

  • 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

  • syam404's avatar
    syam404
    Icon for New Contributor rankNew Contributor

    - 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

    Regards,

    Syam

    • syam404's avatar
      syam404
      Icon for New Contributor rankNew Contributor

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

      Regards,

      Syam

  • 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

  • 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

  • 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