3 Replies Latest reply on Apr 10, 2019 11:42 PM by GauravS_31

    Same Thirdparty source code twice in a application.

    BaT_3785171

      I have installed WICED-Studio-6.2.1.2-IDE.
      I am porting a source code to 43xxx_Wi-Fi project.
      Source code which i am porting is already having customized LwIP 2.1.2
      In WICED folder also customized LwIP 2.0.3 is present.

      I understand from my previous question (with title Upgradation of LwIP to 2.1.2)
      in this community that combining these two customized LwIPs is not a recommended
      solution.

      I have decided to keep both the LwIPs.
      1.Idea is not to touch LwIP in source code being ported.(As source code not to be changed).
      2.And LwIP present In WICED folder to be compiled using 'namespace' after changing all the required
        files to .cpp extension.
       
      My concern is with pre-processor directives.
      When i search for "#define " directive i am getting 3781 hits in 222 files of WICED LwIP 2.0.3.
      These pre-processor macros which may be common in both LwIPs(application LwIP 2.1.2 and WICED LwIP 2.0.3) may either
      cause compilation error or runtime error.

      Any idea to handle this kind of situation?