1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Error Undeclared identifier error _beginthread

Discussion in 'Win32' started by naresha1, Jul 31, 2006.

  1. naresha1

    naresha1 New Member

    Joined:
    Jul 31, 2006
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    0
    iam naresh
    iam getting an error while writing the _beginthread function.
    process.h is included
    its a win32 base console application
    if i do this->
    "Project|Settings|C/C++|Code generation|Use runtime library: (Debug)
    > multithreaded"
    then iam getting unresolved external symbol error in linking :_function()@1
    plz get me the solution
     
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,276
    Likes Received:
    364
    Trophy Points:
    83
    To use _beginthread or _beginthreadex, the application must link with one of the multithreaded C run-time libraries.

    Link to
    LIBCMT.LIB -- static link
    MSVCRT.LIB -- dynamic link
     

Share This Page