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.

Rebuilding the Winapps example for C6748

Hi, 

I want to modify the winapps code and build them am I trying to use MINGW gcc to accomplish this. I understand that I have to use the m.bat file and I followed the steps listed in this thread as well "e2e.ti.com/.../1730751. I am able to run the cl command but I ran into some error messages.

This was what my m.bat file contained:

I am pretty new to gcc and ti rtos in general. Did I miss anthing which I should include?

  • Hi Jerome,

    This user seems to have the same errors regarding headers not found: https://e2e.ti.com/support/dsp/c6000_multi-core_dsps/f/639/t/490525. He claims he resolved it by running 'vcvars32.bat' before running m.bat. Could you try the same?

    Best regards,

    Vincent

  • Hi Vincent,

    Thank you for your reply. I have read the thread before and I tried the thread's solution. I believe the thread was advising me to change m.bat's contents to point to where my "vcvars32.bat" file is located and I have done that. I believe that my error comes from the cl commands, etc "cl echoc.c wsock32.lib ws2_32" as the error messages I get say that they do not recognise the source file type "ws2_32". I have highlighted those messages in the picture below.

    I suspect that because in this thread, "https://e2e.ti.com/support/embedded/tirtos/f/355/t/138105" 

    well used:

     

    cl echoc.c wsock32.lib

    cl send.c wsock32.lib

    cl recv.c wsock32.lib

    cl testudp.c wsock32.lib

    cl helloWorld.c wsock32.lib

    cl sndpkt.c wsock32.lib 

     

    However my bat file contained another set of cl commands instead


    I used the cl commands suggested in that thread and now got another set of error messages.

    I am not sure how to proceed from this and if I have gone about it the right way. 

    Regards,

    Jerome Lieow

  • Hi Vincent,

    I did a bit more digging and I am finally able to solve the issues I had. I followed this thread "e2e.ti.com/.../476782" and I was able to resolve all my other issues. It seems I had to use Visual Studio's prompt and change the bat file command from wsock32.lib to ws2_23.lib. For example, by typing into VS's cmd prompt "cl helloWorld.c ws2_32.lib" while in the winapps folder, I was able to rebuild all the examples. Thank you for your help.

    Regards,
    Jerome Lieow