hi,
i'm using the following platform:
- tirtos_tivac_2.10.01.38
- CCS 6.0.1.00040
- xdctools_3_30_06_67_core
i want to use the BSD socket.h library, but for unknown reason i'm getting many errors due duplicate in the socket.h definitions one of them is
C:\ti\tirtos_tivac_2_10_01_38\products\ndk_2_24_01_18\packages\ti\ndk\inc
and the other in:
C:\ti\tirtos_tivac_2_10_01_38\products\ndk_2_24_01_18\packages\ti\ndk\inc\bsd\sys
the errors are:
Description Resource Path Location Type
#249 function "FD_ISSET" has already been defined .ccsproject /ICG line 90, external location: C:\ti\tirtos_tivac_2_10_01_38\products\ndk_2_24_01_18\packages\ti\ndk\inc\socket.h C/C++ Problem
#249 function "FD_SET" has already been defined .ccsproject /ICG line 101, external location: C:\ti\tirtos_tivac_2_10_01_38\products\ndk_2_24_01_18\packages\ti\ndk\inc\socket.h C/C++ Problem
#249 function "accept" has already been defined .ccsproject /ICG line 121, external location: C:\ti\tirtos_tivac_2_10_01_38\products\ndk_2_24_01_18\packages\ti\ndk\inc\socket.h C/C++ Problem
#249 function "bind" has already been defined .ccsproject /ICG line 129, external location: C:\ti\tirtos_tivac_2_10_01_38\products\ndk_2_24_01_18\packages\ti\ndk\inc\socket.h C/C++ Problem
#102 "IP6N" has already been declared in the current scope .ccsproject /ICG line 58, external location: C:\ti\tirtos_tivac_2_10_01_38\products\ndk_2_24_01_18\packages\ti\ndk\inc\usertype.h C/C++ Problem
#258 invalid redeclaration of type name "IP6N" (declared at line 80 of "c:/ti/tirtos_tivac_2_10_01_38/products/ndk_2_24_01_18/packages/ti/ndk/inc/bsd/sys/socket.h") .ccsproject /ICG line 66, external location: C:\ti\tirtos_tivac_2_10_01_38\products\ndk_2_24_01_18\packages\ti\ndk\inc\usertype.h C/C++ Problem
#249 function "FD_ZERO" has already been defined .ccsproject /ICG line 68, external location: C:\ti\tirtos_tivac_2_10_01_38\products\ndk_2_24_01_18\packages\ti\ndk\inc\socket.h C/C++ Problem
#249 function "FD_CLR" has already been defined .ccsproject /ICG line 79, external location: C:\ti\tirtos_tivac_2_10_01_38\products\ndk_2_24_01_18\packages\ti\ndk\inc\socket.h C/C++ Problem
#249 function "socket" has already been defined .ccsproject /ICG line 279, external location: C:\ti\tirtos_tivac_2_10_01_38\products\ndk_2_24_01_18\packages\ti\ndk\inc\socket.h C/C++ Problem
#249 function "recv" has already been defined .ccsproject /ICG line 187, external location: C:\ti\tirtos_tivac_2_10_01_38\products\ndk_2_24_01_18\packages\ti\ndk\inc\socket.h C/C++ Problem
#20 identifier "CI_SERVICE_DHCPC" is undefined DC_CORE.c /ICG/ATI Library/Service Layer/System/Diagonstic Console line 654 C/C++ Problem
#20 identifier "CI_ROUTE" is undefined DC_CORE.c /ICG/ATI Library/Service Layer/System/Diagonstic Console line 653 C/C++ Problem
#249 function "listen" has already been defined .ccsproject /ICG line 179, external location: C:\ti\tirtos_tivac_2_10_01_38\products\ndk_2_24_01_18\packages\ti\ndk\inc\socket.h C/C++ Problem
#20 identifier "CI_IPNET" is undefined DC_CORE.c /ICG/ATI Library/Service Layer/System/Diagonstic Console line 652 C/C++ Problem
#249 function "getsockopt" has already been defined .ccsproject /ICG line 170, external location: C:\ti\tirtos_tivac_2_10_01_38\products\ndk_2_24_01_18\packages\ti\ndk\inc\socket.h C/C++ Problem
#249 function "connect" has already been defined .ccsproject /ICG line 137, external location: C:\ti\tirtos_tivac_2_10_01_38\products\ndk_2_24_01_18\packages\ti\ndk\inc\socket.h C/C++ Problem
#249 function "setsockopt" has already been defined .ccsproject /ICG line 262, external location: C:\ti\tirtos_tivac_2_10_01_38\products\ndk_2_24_01_18\packages\ti\ndk\inc\socket.h C/C++ Problem
#249 function "sendto" has already been defined .ccsproject /ICG line 237, external location: C:\ti\tirtos_tivac_2_10_01_38\products\ndk_2_24_01_18\packages\ti\ndk\inc\socket.h C/C++ Problem
#249 function "send" has already been defined .ccsproject /ICG line 229, external location: C:\ti\tirtos_tivac_2_10_01_38\products\ndk_2_24_01_18\packages\ti\ndk\inc\socket.h C/C++ Problem
#249 function "recvfrom" has already been defined .ccsproject /ICG line 195, external location: C:\ti\tirtos_tivac_2_10_01_38\products\ndk_2_24_01_18\packages\ti\ndk\inc\socket.h C/C++ Problem
So how can i fix this conflict?
Thanks,
Mohamed Fawzy