# RTE with WIP

**URL:** <https://forum.sierrawireless.com/t/rte-with-wip/2526>\
**Category:** Development tools\
**Created:** [September 17, 2008, 10:42pm UTC](https://forum.sierrawireless.com/t/rte-with-wip/2526 "2008-09-17T22:42:04Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![RyanR](https://avatars.discourse-cdn.com/v4/letter/r/e8c25b/32.png) [@RyanR](https://forum.sierrawireless.com/u/RyanR)\
**Post date:** [September 17, 2008, 10:42pm UTC](https://forum.sierrawireless.com/t/rte-with-wip/2526/1 "2008-09-17T22:42:04Z")

</div>

I just downloaded OASIS 2.10. I was really hoping it fixed a bug that seems to have been in every OASIS release. Has anyone gotten RTE projects to build when they include WIP? Here is what I’m seeing:

… Link mingw\_App-Rte\_1MB+.bin …

make.exe: \*\*\* [make\_single\_bin] Error 1  
U:/projet/gsmmi/int/plu/serena/wip\_5.00.2030/PluginsBuild/libs/WIP/mingw/out/ch\_tcp\_client.c:667: undefined reference to `min' U:/projet/gsmmi/int/plu/serena/wip_5.00.2030/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.

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [September 18, 2008, 5:35am UTC](https://forum.sierrawireless.com/t/rte-with-wip/2526/2 "2008-09-18T05:35:28Z")

</div>

> [@RyanR](#):
>
> Has anyone gotten RTE projects to build when they include WIP?

Yes, but I use MSVS - not eclipse. 8)

And the reason I’ve not moved to eclipse is precisely because it doesn’t work properly yet! 😒

See: [viewtopic.php?f=21&t=2298&p=9069&hilit=eclipse#p9069](http://www.wavecom.com/modules/movie/scenes/forums/viewtopic.php?f=21&t=2298&p=9069&hilit=eclipse#p9069)

and: [viewtopic.php?f=53&t=2384&p=8889&hilit=eclipse#p8889](http://www.wavecom.com/modules/movie/scenes/forums/viewtopic.php?f=53&t=2384&p=8889&hilit=eclipse#p8889)

and: [viewtopic.php?f=19&t=1333&p=4968&hilit=eclipse#p4968](http://www.wavecom.com/modules/movie/scenes/forums/viewtopic.php?f=19&t=1333&p=4968&hilit=eclipse#p4968)

---

<div class="post-metadata">

**Author:** ![Matt\_Otto](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Matt\_Otto](https://forum.sierrawireless.com/u/Matt_Otto)\
**Post date:** [September 18, 2008, 2:31pm UTC](https://forum.sierrawireless.com/t/rte-with-wip/2526/3 "2008-09-18T14:31:37Z")

</div>

I’m not sure how using MSVS would solve the fact that a function is missing. That’s the job of the compiler & linker. It shouldn’t be dependent on the IDE you’re using.

But back to the original topic:  
I never use RTE, so I can’t answer your question directly, but here’s a potential workaround. In your code, create a ‘min’ function, but make it “weak” so it doesn’t affect TARGET builds. Something like this:

int min(int first, int second) **attribute** ((weak));

int min(int first, int second)  
{  
if (first \< second)  
return first;  
return second;  
}

This will supply a ‘min’ function when there isn’t one (RTE), but it won’t be used when there already is another copy of ‘min’ (in the TARGET libraries). (If this doesn’t work, try chaning the ints to longs. I don’t know how the original ‘min’ was declared.)

---

<div class="post-metadata">

**Author:** ![medusa](https://avatars.discourse-cdn.com/v4/letter/m/96bed5/32.png) [@medusa](https://forum.sierrawireless.com/u/medusa)\
**Post date:** [November 3, 2008, 12:46pm UTC](https://forum.sierrawireless.com/t/rte-with-wip/2526/4 "2008-11-03T12:46:28Z")

</div>

I have same problem with eclipse and sample FTP2FTP or FTPput ord FTPlist

---

<div class="post-metadata">

**Author:** ![Matt\_Otto](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@Matt\_Otto](https://forum.sierrawireless.com/u/Matt_Otto)\
**Post date:** [November 3, 2008, 2:09pm UTC](https://forum.sierrawireless.com/t/rte-with-wip/2526/5 "2008-11-03T14:09:17Z")

</div>

So…

Does my workaround help? If not: more details!

---

<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, 5:28am UTC](https://forum.sierrawireless.com/t/rte-with-wip/2526/6 "2008-11-05T05:28:29Z")

</div>

hey Ryan,

i have using the WIP lib(with OASiS) in RTE mode for quiet some time now…it works pretty neat !!!

Which IDE are u using?

For u r problem i think u r choosing the “Library” option in the Open AT Project Wizard. Change that to “Binary”  
Else, in your IDE u can perform a “CLEAN” and the a “RE-BUILD” all…

Also the path specified in u r error msg is a bot strange…y have created a “MINGW” folder in your project wizard?? 💡

---

<div class="post-metadata">

**Author:** ![awneil](https://avatars.discourse-cdn.com/v4/letter/a/49beb7/32.png) [@awneil](https://forum.sierrawireless.com/u/awneil)\
**Post date:** [November 5, 2008, 9:00am UTC](https://forum.sierrawireless.com/t/rte-with-wip/2526/7 "2008-11-05T09:00:56Z")

</div>

> [@Matt Otto](#):
>
> I’m not sure how using MSVS would solve the fact that a function is missing. That’s the job of the compiler & linker. It shouldn’t be dependent on the IDE you’re using.

It does depend on having the IDE (and all the underlying tools) set up correctly, though!

My point was that my IDE setup (which happens to be MSVS) does appear to be correct - so the compiler & linker, as you say, can just get on with their jobs.

My other point was that I’ve not used the Eclipse version: precisely because Wavecom’s implementation of it seems to faulty - so it could well be that this is just another of the “endemic” faults with it! 😠

---

<div class="post-metadata">

**Author:** ![PJA](https://avatars.discourse-cdn.com/v4/letter/p/858c86/32.png) [@PJA](https://forum.sierrawireless.com/u/PJA)\
**Post date:** [November 14, 2008, 2:04pm UTC](https://forum.sierrawireless.com/t/rte-with-wip/2526/8 "2008-11-14T14:04:40Z")

</div>

> [@Matt Otto](#):
>
> …here’s a potential workaround. In your code, create a ‘min’ function, but make it “weak” so it doesn’t affect TARGET builds. Something like this:
> 
> int min(int first, int second) **attribute** ((weak));
> 
> int min(int first, int second)  
> {  
> if (first \< second)  
> return first;  
> return second;  
> }

Thanks, Matt, this workaround really does work around! 😃 Altough it leads to warning saying “weak declaration of ‘min’ not supported”, the project builds in RTE.
