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.

Compiler/CC3200-LAUNCHXL: webclient does not build if we replace HTTPCli_LIBTYPE_MIN with HTTPCli_LIBTYPE_FULL

Part Number: CC3200-LAUNCHXL
Other Parts Discussed in Thread: CC3200SDK

Tool/software: TI C/C++ Compiler

Hello,

I am trying to get HTTP working in ASYNC mode. I tried rebuilding the library by replacing HTTPCli_LIBTYPE_MIN with HTTPCli_LIBTYPE_FULL as recommended by the documentation.

However when I try to build the project I get the following errors:

>> Compilation failure
subdir_rules.mk:9: recipe for target 'httpcli.obj' failed
"C:/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/http/client/httpcli.c", line 1013: error #20: identifier "Task_Handle" is undefined
"C:/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/http/client/httpcli.c", line 1014: error #20: identifier "Task_Params" is undefined
"C:/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/http/client/httpcli.c", line 1015: warning #225-D: function "Task_Params_init" declared implicitly
"C:/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/http/client/httpcli.c", line 1022: error #20: identifier "UArg" is undefined
"C:/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/http/client/httpcli.c", line 1022: error #66: expected a ";"
"C:/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/http/client/httpcli.c", line 1023: warning #225-D: function "Task_create" declared implicitly
"C:/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/http/client/httpcli.c", line 1023: error #20: identifier "Task_FuncPtr" is undefined
"C:/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/http/client/httpcli.c", line 1023: error #18: expected a ")"
"C:/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/http/client/httpcli.c", line 1042: warning #225-D: function "Task_exit" declared implicitly
6 errors detected in the compilation of "C:/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/http/client/httpcli.c".
gmake: *** [httpcli.obj] Error 1

Are there any libraries that I will need to link or compiler options that I am missing?

Best,

Scott

  • Hi Scott,

    You also need to have __OSI__ added as a predefined symbol, as the full library requires RTOS support. If you go into the project properties, you can choose the HTTPClientFullLib configuration where this is done for you.

    If you need more explanation of the libraries and how to include your new webclient library into your project, please see this thread: e2e.ti.com/.../2028850

    Best regards,
    Sarah

  • Hello,

    Thank you Sarah for the tip. I tried re-building the webclient project with __OSI__ predefined symbol and HTTPCli_LIBTYPE_FULL instead of HTTPCli_LIBTYPE_MIN. When I try this I get the following error:

    >> Compilation failure
    subdir_rules.mk:9: recipe for target 'httpcli.obj' failed
    "C:/ti/CC3200SDK_1.3.0/cc3200-sdk/oslib/osi.h", line 59: error #41: expected an identifier
    1 error detected in the compilation of "C:/ti/CC3200SDK_1.3.0/cc3200-sdk/netapps/http/client/httpcli.c".
    gmake: *** [httpcli.obj] Error 1
  • Hi Scott,

    Apologies, you also need SL_PLATFORM_MULTI_THREADED as a predefined symbol.

    You can see this in the HTTPClientFullLib configuration, as shown:

    You will have to click Manage Configurations and select the Full library as Active. You may want to do this so the Full library rebuilds in the folder with the correct name.

    Best regards,

    Sarah