SourceForge has been redesigned. Learn more.
Close

#1461 can not compile sources using WSCWriteProviderOrder Function

closed-fixed
2010-08-24
2010-08-12
Марк
No

http://msdn.microsoft.com/en-us/library/ms742263%28VS.85%29.aspx
As we see, library is sporder.lib

But there is no sporder.a file in /usr/i586-mingw32msvc/lib
On other hand, this function is mentioned in .h file:
mmarkk@mmarkk-work:/usr/i586-mingw32msvc/include$ fgrep -i WSCWriteProviderOrder -r .
./ws2spi.h:INT WSPAPI WSCWriteProviderOrder(LPDWORD,DWORD);

When I compile sources which uses this function I receive undefined reference to `_WSCWriteProviderOrder@8'

I use Ubuntu 10.04 x86 32 bit and standard mingw ( version 3.15.2-0ubuntu1 )

Discussion

  • Марк

    Марк - 2010-08-12
    • labels: 104601 --> w32api (deprecated use WSL)
     
  • Марк

    Марк - 2010-08-16

    Fix of this and future problems

     
  • Марк

    Марк - 2010-08-16

    To get real export table I wrote this script:

    #!/bin/bash

    [ -z "$1" ] && exit 0

    /usr/i586-mingw32msvc/bin/objdump -p $1 | awk '
    /\[Ordinal\/Name Pointer\] Table/ { found=1; next; }.
    /^$/ { if (found) exit; }
    { if (found) print $3; }
    '

    dlltool does not help me :(

     
  • Марк

    Марк - 2010-08-16

    see attachemnt. This is the fix of a problem.

     
  • Chris Sutcliffe

    Chris Sutcliffe - 2010-08-24

    Thank you for the report, I've committed a fix to CVS.

     
  • Chris Sutcliffe

    Chris Sutcliffe - 2010-08-24
    • assigned_to: nobody --> ir0nh34d
    • status: open --> closed-fixed
     

Log in to post a comment.