This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/CC3220SF-LAUNCHXL: Porting issue on IAR code into CCS

Part Number: CC3220SF-LAUNCHXL

Tool/software: Code Composer Studio

Hi experts,

Recently I started to port my IAR code to CCS. But I'm facing some errors and that is pointing to sl_select file saying that incompatile declation of sl_select. Here is the error:

sl_socket.h", line 792: error #148: declaration is incompatible with "int sl_Select(int, fd_set *, fd_set *, fd_set *, struct timeval *)" (declared at line 105 of "C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/include/sys/select.h").

I'm also attaching the build setting for my project as a screenshot. Can You please point out what went wrong.

  • I don't know what happened.  But I have an idea of how to figure it out.

    For the source file which gets this diagnostic ...

    Manish_Thakur said:
    sl_socket.h", line 792: error #148: declaration is incompatible with "int sl_Select(int, fd_set *, fd_set *, fd_set *, struct timeval *)" (declared at line 105 of "C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/include/sys/select.h").

    Please add the compiler build option --gen_preprocessor_listing and build again.  This creates a preprocessor listing file.  It has the same name as the source file, with the file extension changed to .rl.  Attach it to your next forum post.  So the forum will accept it, add the file extension .txt to it.

    I'm confident this preprocessor listing file will either show what happened, or point the way to better questions about what happened.

    Thanks and regards,

    -George