Cannot build tcp_client example in RTE mode


I cannot build tcp_client example in RTE mode - error at linking is “…/ch_tcp_client.c:667: undefined reference to ‘min’”. WTF!!! This is starting to drive me nuts.


Please let me add my fustration to your!!!

I just downloaded and installed the latest Wavecom OpenAT Software Suite v2.11

I loaded the sample WIP code for the TCP_Client. These were my results:

[size=85]c:\OpenAT\IDE\MINGW\\bin\make.exe: *** [make_single_bin] Error 1
U:/projet/gsmmi/int/plu/serena/wip_5.00.2050/PluginsBuild/libs/WIP/mingw/out/ch_tcp_client.c:667: undefined reference to min' U:/projet/gsmmi/int/plu/serena/wip_5.00.2050/PluginsBuild/libs/WIP/mingw/out/ch_tcp_client.c:716: undefined reference tomin’
Updating RTE kernel file…
no generated DLL found…
[wmmake error #1] Build error.[/size]

Does any one have a solution for this???



this problem is present only if we use the ECLIPSE IDE. in target mode it is working fine.

As of now the only solution for me is it to use the Microsoft Visual C++. Both RTE and TARGET works fine in that …

will keep u guyz posted if i find any thing helpful in eclipse…



There is a “min” function which is defined in std lib of Microsoft Visual C++6 but it is not added in the std lib of mingw. Hence , i feel that the “min” function should not be used . It should be removed from the WIP Plugin. Try dis i think the sample would work after removing it. I had tried and it was working fine.

cheers… :smiley: