beginthreadex 를 쓰기 위해서 #include <process.h>를 선언했는데;;;; 김영지 / comadolphin  
김영지님께 메시지 보내기    김영지님의 블로그가 없습니다  

 _beginthreadex 를 쓰기 위해서 #include <process.h>를 선언했는데 '_beginthreadex' : undeclared identifier가 나요

 

그래서 msdn library에 있는 MSVCRT.LIB LIBCMT.LIB 것도 링크 시켜줬는데;;

 

_beginthreadex 못 읽어요.

 

에러좀 잡아주세요

이 글에 평점 주기:  
  2005-05-04 오후 3:20:03   /  번호: 515895  / 평점:  (9.0)  
 Re: ... 김한주 / johnhj  
김한주님께 메시지 보내기    김한주님의 블로그가 없습니다  
컴파일러 옵션때문인거 같네요.
프로젝트 세팅창의 C/C++ 탭에
Compiler Option 부분에...
/ML (혹은 /MLd) 로 된 부분을 /MT (혹은 /MTd)로 설정하고 compile해보세요..

아래는 msdn 발췌입니다.
 * This program requires the multithreaded library. For example,
 * compile with the following command line:
 *     CL /MT /D "_X86_" BEGTHRD.C
 *
 * If you are using the Visual C++ development environment, select the 
 * Multi-Threaded runtime library in the compiler Project Settings 
 * dialog box.

그럼 ^^
이 글에 평점 주기:  
  2005-05-04 오후 3:38:50   /  번호: 515898  / 평점:  (-)  
 Re: 그런데 warning이 뜨는데요...;; 김영지 / comadolphin  
김영지님께 메시지 보내기    김영지님의 블로그가 없습니다  

 ignoring unknown option '/Mtd'

라는 warning뜨는데요.

원래 뜨는건가요?

 

c/c++에서 /mtd로 고쳐줄때 editbox에서 바로 고쳐주는거 맞죠?

이 글에 평점 주기:  
  2005-05-04 오후 3:42:21   /  번호: 515901  / 평점:  (-)  
 Re: 대소문자... 김한주 / johnhj  
김한주님께 메시지 보내기    김한주님의 블로그가 없습니다  

대소문자 구분합니다^^

/Mtd  > /MTd로 해야 될거구요...

 

아래 장황한 상세 설명스크랩입니다.

 

Command Line Project Settings Description
/MD Multithreaded DLL Defines _MT and _DLL so that both multithread- and DLL-specific versions of the run-time routines are selected from the standard .H files. This option also causes the compiler to place the library name MSVCRT.LIB into the .OBJ file. 
Applications compiled with this option are statically linked to MSVCRT.LIB. This library provides a layer of code that allows the linker to resolve external references. The actual working code is contained in MSVCRT.DLL, which must be available at run time to applications linked with MSVCRT.LIB.
/MDd Debug Multithreaded DLL Defines _DEBUG_MT, and _DLL so that debug multithread- and DLL-specific versions of the run-time routines are selected from the standard .H files. It also causes the compiler to place the library name MSVCRTD.LIB into the .OBJ file.
/ML Single-Threaded Causes the compiler to place the library name LIBC.LIB into the .OBJ file so that the linker will use LIBC.LIB to resolve external symbols. This is the compiler’s default action. LIBC.LIB does not provide multithread support.
/MLd Debug Single-Threaded Defines _DEBUG and causes the compiler to place the library name LIBCD.LIB into the .OBJ file so that the linker will use LIBCD.LIB to resolve external symbols. LIBCD.LIB does not provide multithread support.
/MT Multithreaded Defines _MT so that multithread-specific versions of the run-time routines are selected from the standard header (.H) files. This option also causes the compiler to place the library name LIBCMT.LIB into the .OBJ file so that the linker will use LIBCMT.LIB to resolve external symbols. Either /MT or /MD (or their debug equivalents /MTd or /MDd) is required to create multithreaded programs.
/MTd Debug Multithreaded Defines _DEBUG and _MT. Defining _MT causes multithread-specific versions of the run-time routines to be selected from the standard .H files. This option also causes the compiler to place the library name LIBCMTD.LIB into the .OBJ file so that the linker will use LIBCMTD.LIB to resolve external symbols. Either /MTd or /MDd (or their non-debug equivalents /MT or MD) is required to create multithreaded programs.
/LD Not applicable Creates a DLL. 
Passes the /DLL option to the linker. The linker looks for, but does not require, a DllMain function. If you do not write a DllMain function, the linker inserts a DllMain function that returns TRUE. 
Links the DLL startup code.
Creates an import library (.LIB), if an export (.EXP) file is not specified on the command line; you link the import library to applications that call your DLL.
Interprets /Fe as naming a DLL rather than an .EXE file; the default program name becomesbasename.DLL instead of basename.EXE.
Changes default run-time library support to /MT if you have not explicitly specified one of the /M options
/LDd Not applicable Creates a debug DLL. Defines _DEBUG.
이 글에 평점 주기:  
  2005-05-04 오후 3:54:39   /  번호: 515903  / 평점:  (-)  
 Re: 감사합니다. 김영지 / comadolphin  
김영지님께 메시지 보내기    김영지님의 블로그가 없습니다  

 감사합니다.

ㅎㅎ

/nologo /MTd /W3 /Gm /GX /ZI /Od /D "WIN32" /D "_DEBUG" /D "_CONSOLE" /D "_MBCS" /Fp"Debug/MSCDecoder.pch" /YX /Fo"Debug/"

이렇게 적었는데;;

 

에러는 /Mtd라고 소문자라고 나오네요;;; 우선 에러는 안나오니깐!! 그걸로 만족해야될꺼 같네요..

+ Recent posts