성태의 닷넷 이야기
홈 주인
모아 놓은 자료
프로그래밍
질문/답변
사용자 관리
사용자
메뉴
아티클
외부 아티클
유용한 코드
온라인 기능
MathJax 입력기
최근 덧글
[정성태] Reordering on an Alpha processor ;...
[정성태] 공유 감사합니다. ^^ 참고로, WPF에서 WindowsF...
[Tom Lee] 답변 감사합니다. 나름의 해결책 연구해보고 여기에도 공유해봅니다...
[정성태] 아래의 글을 보면, MoveWindow 하면 될 듯한데요. ^^...
[Tom Lee] 안녕하세요 올려주신 글 참고하여 WPF 어플리케이션 안에 Uni...
[정성태] A graphical depiction of the steps ...
[정성태] 질문을 주셔서 출판사 측에 문의를 했습니다. 약 한 달 정도 후...
[Thorondor
] @정성태 개인 블로그인데도 거의 커뮤니티 급 인 것 같아요. 요...
[정성태] Roll A Lisp In C - Reading ; https...
[정성태] Java - How to use the Foreign Funct...
글쓰기
제목
이름
암호
전자우편
HTML
홈페이지
유형
제니퍼 .NET
닷넷
COM 개체 관련
스크립트
VC++
VS.NET IDE
Windows
Team Foundation Server
디버깅 기술
오류 유형
개발 환경 구성
웹
기타
Linux
Java
DDK
Math
Phone
Graphics
사물인터넷
부모글 보이기/감추기
내용
<div style='display: inline'> <br /> <div class='mainCenterTitle'>Orcas - ComUtil로 인한 증분(/INCREMENTAL) 링크 옵션 사용 제한</div><br /> <br /> 예제 소스를 먼저 풀어보는 것이 좋겠지요. <br /> 다음과 같은 Win32 Console Application 소스를 간단하게 만들어 본 후 빌드를 해보십시오.<br /> <br /> <pre class='code'> #include "stdafx.h" #include "MyTest.h" <b>#include "comutil.h"</b> #pragma comment( lib, "<b>comsuppwd.lib</b>" ) //#pragma comment( lib, "comsuppw.lib" ) int _tmain(int argc, _TCHAR* argv[]) { char *pStr = "TEST"; BSTR bstrText = <b>_com_util::ConvertStringToBSTR</b>(pStr); return 0; } </pre> <br /> 빌드로 인한 "Output" 창의 내용은 다음과 같습니다.<br /> <br /> <pre class='code'> 1>------ Build started: Project: UseComUtil, Configuration: Debug Win32 ------ 1>Compiling... 1>stdafx.cpp 1>Compiling... 1>UseComUtil.cpp 1>Compiling manifest to resources... 1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0 1>Copyright (C) Microsoft Corporation. All rights reserved. <b>1>Linking... 1>comsuppwd.lib(comutil.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance 1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification </b> 1>Generating code 1>Finished generating code 1>Embedding manifest... 1>Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0 <b>1>Copyright (C) Microsoft Corporation. All rights reserved. 1>comsuppwd.lib(comutil.obj) : MSIL .netmodule or module compiled with /GL found; restarting link with /LTCG; add /LTCG to the link command line to improve linker performance 1>LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/LTCG' specification </b> 1>Generating code 1>Finished generating code 1>Build log was saved at "file://d:\temp\uacTest\UseComUtil\UseComUtil\Debug\BuildLog.htm" 1>UseComUtil - 0 error(s), 2 warning(s) ========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ========== </pre> <br /> 보시는 것처럼, comsuppwd.lib 라이브러리가 "/GL (Whole Program Optimization)" 옵션으로 빌드되어 있어서, 그 영향으로 인해 전체적인 링크가 다시 "/LTCG (Link-time Code Generation)"과 함께 수행되어버렸습니다.<br /> <br /> 증분링크(/INCREMENTAL - Link Incrementally)가 무시되어 "/LTCG"로 빌드되었으니, 링크 과정의 시간 손실은 물론이고 디버깅 시에 코드를 수정하는 것이 가능했던 "<a target='tab' href='https://blog.naver.com/debug_lab/223130365846'>EnC (Edit and Continue)</a>" 기능마저 사용할 수 없게 되었습니다. (실제로, 위와 동일한 코드를 VS.NET 2005에서 하게 되면 증분 링크 옵션이 정상적으로 동작합니다.)<br /> <br /> 제 생각에는, Microsoft가 comsuppwd.lib에 대해서 빌드를 잘못한 것이 아닌가 예상해 봅니다. 디버그 버전인 "comsuppwd.lib"는 "/GL" 옵션을 제거했어야 하고, 릴리스 버전인 "/comsuppw.lib"에만 "/GL" 옵션을 주었어야 하죠. 아니면, "comsuppw(d).lib" 쪽에 C++/CLI 코드가 함께 있는 것이 아닌가 싶기도 하고.<br /> <br /> 다음 베타 버전,,, 적어도 RTM 버전에서는 이 문제가 수정되겠지요. ^^<br /> <br /><br /><hr /><span style='color: Maroon'>[이 토픽에 대해서 여러분들과 의견을 공유하고 싶습니다. 틀리거나 미흡한 부분 또는 의문 사항이 있으시면 언제든 댓글 남겨주십시오.]</span> </div>
첨부파일
스팸 방지용 인증 번호
5235
(왼쪽의 숫자를 입력해야 합니다.)