# Cannot build tcp\_client example in RTE mode

**URL:** <https://forum.sierrawireless.com/t/cannot-build-tcp-client-example-in-rte-mode/2643>\
**Category:** Open AT\
**Created:** [November 4, 2008, 8:02am UTC](https://forum.sierrawireless.com/t/cannot-build-tcp-client-example-in-rte-mode/2643 "2008-11-04T08:02:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mishac](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/mishac/32/2634_2.png) [@mishac](https://forum.sierrawireless.com/u/mishac)\
**Post date:** [November 4, 2008, 8:02am UTC](https://forum.sierrawireless.com/t/cannot-build-tcp-client-example-in-rte-mode/2643/1 "2008-11-04T08:02:14Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![eddie435](https://avatars.discourse-cdn.com/v4/letter/e/e9bcb4/32.png) [@eddie435](https://forum.sierrawireless.com/u/eddie435)\
**Post date:** [November 4, 2008, 10:25pm UTC](https://forum.sierrawireless.com/t/cannot-build-tcp-client-example-in-rte-mode/2643/2 "2008-11-04T22:25:21Z")

</div>

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\3.8.0.1\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 to`min’  
Done.  
Updating RTE kernel file…  
no generated DLL found…  
[wmmake error #1] Build error.[/size]

Does any one have a solution for this???

---

<div class="post-metadata">

**Author:** ![abhayms](https://avatars.discourse-cdn.com/v4/letter/a/5daacb/32.png) [@abhayms](https://forum.sierrawireless.com/u/abhayms)\
**Post date:** [November 5, 2008, 7:14am UTC](https://forum.sierrawireless.com/t/cannot-build-tcp-client-example-in-rte-mode/2643/3 "2008-11-05T07:14:36Z")

</div>

Hey!!!

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…

---

<div class="post-metadata">

**Author:** ![paruthiv](https://avatars.discourse-cdn.com/v4/letter/p/eb8c5e/32.png) [@paruthiv](https://forum.sierrawireless.com/u/paruthiv)\
**Post date:** [November 17, 2008, 5:25am UTC](https://forum.sierrawireless.com/t/cannot-build-tcp-client-example-in-rte-mode/2643/4 "2008-11-17T05:25:56Z")

</div>

Hey…!!

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… 😃
