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,336
    Likes Received:
    377
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice