List Info

Thread: msvc2005 build issues




msvc2005 build issues
country flaguser name
United States
2007-10-15 11:59:21
problem building under msvc2005

iaxclient_lib.c/iaxc_initialize(int num_calls)

this code

        if ( iaxc_recvfrom != (iaxc_recvfrom_t)recvfrom )
              iax_set_networking(iaxc_sendto,
iaxc_recvfrom);

generates

; 564  :
; 565  :         if ( iaxc_recvfrom !=
(iaxc_recvfrom_t)recvfrom )

  0005a a1 00 00 00 00   mov     eax, DWORD PTR
_iaxc_recvfrom
  0005f 3b 05 00 00 00
        00               cmp     eax, DWORD PTR
__imp__recvfrom24
  00065 74 15            je      SHORT $LN11iaxc_initi

; 566  :               iax_set_networking(iaxc_sendto,
iaxc_recvfrom);

  00067 a1 00 00 00 00   mov     eax, DWORD PTR
_iaxc_recvfrom
  0006c 50               push    eax
  0006d 8b 0d 00 00 00
        00               mov     ecx, DWORD PTR
_iaxc_sendto
  00073 51               push    ecx
  00074 e8 00 00 00 00   call    _iax_set_networking
  00079 83 c4 08         add     esp, 8


  which compiles & builds without error but does not
function correctly

  if i change it to

          if ( iaxc_recvfrom != (iaxc_recvfrom_t)recvfrom )
                iax_set_networking((iaxc_sendto_t)sendto, 
(iaxc_recvfrom_t)recvfrom);

it generates

; 564  :
; 565  :         if ( iaxc_recvfrom !=
(iaxc_recvfrom_t)recvfrom )

  0005a a1 00 00 00 00   mov     eax, DWORD PTR
_iaxc_recvfrom
  0005f 3b 05 00 00 00
        00               cmp     eax, DWORD PTR
__imp__recvfrom24
  00065 74 15            je      SHORT $LN11iaxc_initi

; 566  : //            iax_set_networking(iaxc_sendto,
iaxc_recvfrom);
; 567  :                     
iax_set_networking((iaxc_sendto_t)sendto, 
(iaxc_recvfrom_t)recvfrom);

  00067 a1 00 00 00 00   mov     eax, DWORD PTR
__imp__recvfrom24
  0006c 50               push    eax
  0006d 8b 0d 00 00 00
        00               mov     ecx, DWORD PTR
__imp__sendto24
  00073 51               push    ecx
  00074 e8 00 00 00 00   call    _iax_set_networking
  00079 83 c4 08         add     esp, 8

which does seem to work correctly

since the iaxclient-2.0.0-binary-win32 dll works correctly
i assume it's something i'm doing wrong but have no idea

ANY SUGGESTIONS 


------------------------------------------------------------
-------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and
a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Iaxclient-devel mailing list
Iaxclient-devellists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/iaxclie
nt-devel

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )