#691 undefined reference to `OpenThread'

Feature_requests
closed-invalid
nobody
2004-12-08
2004-12-08
No

OpenThread function is undeclared in latest release of
w32api. Here is the link to MSDN :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/base/openthread.asp

Discussion

  • Danny Smith

    Danny Smith - 2004-12-08

    Logged In: YES
    user_id=11494

    Have a closer look.
    As the MSDN referenced says, it requires WinMe or XP or
    higher.

    Danny

     
  • Danny Smith

    Danny Smith - 2004-12-08
    • status: open --> closed-invalid
     
  • Gabriel Linder

    Gabriel Linder - 2004-12-08

    Logged In: YES
    user_id=1121203

    I'm currently on XP with SP2, and have this error at
    link-time (works fine on MSVC).

    MinGW's output is :
    (cc warning) main.c:381: warning: implicit declaration of
    function `OpenThread'
    (ld error) main.c:381: undefined reference to `OpenThread'

    So, I think that is a MinGW problem, and report it. Am I wrong ?

     
  • Gabriel Linder

    Gabriel Linder - 2004-12-08

    Logged In: YES
    user_id=1121203

    Oops, I finally found my mistake...

    #define _WIN32_WINNT 0x0500, I do not know that MinGW
    requires that (most strict than MSVC, that's a good thing).
    Sorry guys !

     
  • Earnie Boyd

    Earnie Boyd - 2004-12-08

    Logged In: YES
    user_id=15438

    You need to with MS Compilers as well. MS defines it for
    you and you will use functions not supported by Win98 say
    unaware. With MinGW you need to think about the minimum
    system requirement.

    Earnie

     

Log in to post a comment.