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.

在CCS5.2上运行C6678的client程序时报错?

Description Resource Path Location Type
#20 identifier "SOCK_RAWETH" is undefined client.c /client_evmc6678l line 961 C/C++ Problem
#20 identifier "SOCK_RAWETH" is undefined client.c /client_evmc6678l line 822 C/C++ Problem
#20 identifier "AF_RAWETH" is undefined client.c /client_evmc6678l line 961 C/C++ Problem
#20 identifier "AF_RAWETH" is undefined client.c /client_evmc6678l line 822 C/C++ Problem

  • Move to C6000 multi-core forum

  • 源程序

    #undef TEST_RAW_NC
    #undef TEST_RAW_SEND
    #undef TEST_RAW_RECV

    现在放开了

    #define TEST_RAW_NC
    #define TEST_RAW_SEND
    #define TEST_RAW_RECV

    Description Resource Path Location Type
    #20 identifier "SOCK_RAWETH" is undefined client.c /client_evmc6678l line 961 C/C++ Problem
    #20 identifier "SOCK_RAWETH" is undefined client.c /client_evmc6678l line 822 C/C++ Problem
    #20 identifier "AF_RAWETH" is undefined client.c /client_evmc6678l line 961 C/C++ Problem
    #20 identifier "AF_RAWETH" is undefined client.c /client_evmc6678l line 822 C/C++ Problem

  • 直接导入mcsdk下的client程序是可以直接编译的,你做了什么修改么,在工程中搜索一下相关的未定义宏,看是否缺乏相关的头文件呢,或者有可能是你的ccs版本与mcsdk所需的版本太旧,导致导入的工程属性丢失,可以更新一下ccs到ccs5.4以上试试。

  • 谢谢!已经解决了,不知道为什么程序里没有包含#include <socket.h>,加入之后就编译通过了!