#1423 mingwex cannot link to WinSDK 7.0/A

WSL
closed
None
fixed
Known_bugs
2013-01-30
2010-04-26
No

When trying to link a mingw-gcc-built library w/ a vs2010-built application, one encounters a link error due to undefined symbol.

http://cygwin.com/cgi-bin/cvsweb.cgi/src/winsup/mingw/mingwex/mb_wc_common.h?rev=1.3&content-type=text/x-cvsweb-markup&cvsroot=src&sortby=date
__declspec(dllimport) unsigned int __lc_codepage;
This symbol is not declared anymore in the recent Windows SDK (the one that comes w/ Visual Studio 2010).

See: http://forum.doom9.org/showthread.php?p=1339154#post1339154
VS 2010 now has a function declared (instead of a variable).

Discussion

  • Danny Smith

    Danny Smith - 2010-04-27

    The attached patch fixes.

    2010-04-27 Danny Smith <dannysmith@users.sourceforge.net>

    \* mb\_wc\_common.h \(get\_codepage\): Revert change of 2006-09-19.
    
     
  • Anonymous - 2010-04-29

    Thanks for the quick fix! Could you commit this to the Cygwin CVS? or is there another "more current" repository for that?

     
  • Chris Sutcliffe

    Chris Sutcliffe - 2010-04-30

    The Cygwin CVS is the source repository for mingwrt. I will look in to committing this patch and the other outstanding patches within the next few days.

     
  • Chris Sutcliffe

    Chris Sutcliffe - 2010-05-01

    Hi Danny,

    This patch seems malformed:

    ! static inline static inline
    ! unsigned int get_codepage (void)
    ! { {
    ! char* cp_string; return __lc_codepage;
    ! /*
    ! locale :: "lang[_country[.code_page]]"
    ! | ".code_page"
    !
    ! */
    !
    ! if ((cp_string = strchr(setlocale(LC_CTYPE, NULL), '.')))
    ! return ((unsigned) atoi (cp_string + 1));
    ! return 0;
    ! } }

    Can you please provide a corrected patch?

    Thank you,

    Chris

     
  • Anonymous - 2010-05-18

    How about committing this patch? :/ (two weeks have passed)

     
  • Chris Sutcliffe

    Chris Sutcliffe - 2010-05-18

    As I mentioned in my previous reply, the patch as it stands is malformed. Looking at it, you will notice that it still returns __lc_codepage. I was hoping that Danny would provide an updated patch, but since he has yet to, I will look in to it tonight.

     
  • Chris Sutcliffe

    Chris Sutcliffe - 2010-05-19

    Thank you for the updated patch Danny! I have committed it to CVS.

     
  • Chris Sutcliffe

    Chris Sutcliffe - 2010-05-19
    • labels: --> mingw runtime (deprecated use WSL)
    • assigned_to: nobody --> ir0nh34d
    • status: open --> closed-accepted
     
  • Earnie Boyd

    Earnie Boyd - 2013-01-30
    • labels: mingw runtime (deprecated use WSL) -->
    • status: closed-accepted --> closed
    • resolution: --> fixed
    • category: --> Known_bugs
    • milestone: --> WSL
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks