# Compiling problems

**URL:** <https://forum.sierrawireless.com/t/compiling-problems/168>\
**Category:** Documentation feedback\
**Created:** [December 8, 2005, 6:53am UTC](https://forum.sierrawireless.com/t/compiling-problems/168 "2005-12-08T06:53:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![migabi](https://avatars.discourse-cdn.com/v4/letter/m/c6cbf5/32.png) [@migabi](https://forum.sierrawireless.com/u/migabi)\
**Post date:** [December 8, 2005, 6:53am UTC](https://forum.sierrawireless.com/t/compiling-problems/168/1 "2005-12-08T06:53:14Z")

</div>

When I build my project, I get the following warning :  
c:\sample\gprs\src\appli.c(101) : warning C4113: ‘unsigned short (\_\_cdecl \*)(unsigned short ,unsigned char \*,int )’ differs in parameter lists from ‘void (\_\_cdecl \*)(unsigned short ,int )’

I have this on lin 101 :  
(s8) (ed\_SocketTCPStart(ED\_ID\_TCPSOCKET\_2, 0,(ed\_ResponseCbk\_f)socketResponse, (ed\_DataHandler\_f)RxHandler, (ed\_DataHandler\_f)TxHandler ));

Where is the problem?  
I am using gcc, oat 3.01

---

<div class="post-metadata">

**Author:** ![jan](https://avatars.discourse-cdn.com/v4/letter/j/ce7236/32.png) [@jan](https://forum.sierrawireless.com/u/jan)\
**Post date:** [December 8, 2005, 7:49am UTC](https://forum.sierrawireless.com/t/compiling-problems/168/2 "2005-12-08T07:49:12Z")

</div>

Hi migabi,

> [@migabi](#):
>
> I have this on lin 101 :  
> (s8) (ed\_SocketTCPStart(ED\_ID\_TCPSOCKET\_2, 0,(ed\_ResponseCbk\_f)socketResponse, (ed\_DataHandler\_f)RxHandler, (ed\_DataHandler\_f)TxHandler ));
> 
> Where is the problem?

The third function parameter should be of type ed\_DataRequest\_f and not ed\_DataHandler\_f, so it should be:

```auto
(s8) (ed_SocketTCPStart(ED_ID_TCPSOCKET_2, 0,(ed_ResponseCbk_f)socketResponse, (ed_DataHandler_f)RxHandler, (ed_DataRequest_f)TxHandler ));
```

And you should make sure that TxHandler is defined appropriately…

Best Regards,  
Jan
