C++Builder Programming Forum
C++Builder  |  Delphi  |  FireMonkey  |  C/C++  |  Free Pascal  |  Firebird
볼랜드포럼 BorlandForum
 경고! 게시물 작성자의 사전 허락없는 메일주소 추출행위 절대 금지
C++빌더 포럼
Q & A
FAQ
팁&트릭
강좌/문서
자료실
컴포넌트/라이브러리
메신저 프로젝트
볼랜드포럼 홈
헤드라인 뉴스
IT 뉴스
공지사항
자유게시판
해피 브레이크
공동 프로젝트
구인/구직
회원 장터
건의사항
운영진 게시판
회원 메뉴
북마크
볼랜드포럼 광고 모집

C++빌더 Q&A
C++Builder Programming Q&A
[16982] [질문] W8059 Structure packing size has changed Compiler warning
Zapster [zapster] 1253 읽음    2002-03-28 18:22
음냐 계속 질문만 해서 죄송합니다만 빌더 5에서는 안뜨던 Warning이

빌더 6에서는 코드를 그대로 가져와서 컴파일 한 것 뿐인데도 이런게 계속해서 여러 개 뜨네요...

[C++ Warning] _prolog.h(47): W8059 Structure packing size has changed
[C++ Warning] _epilog.h(32): W8059 Structure packing size has changed

헬프를 찾아보니까 다음과 같은 내용이 나오더군요.

(Command-line option to suppress warning: -w-pck)

This warning message is issued when the structure alignment is different after including a file than it was before including that file.

The intention is to warn you about cases where an include file changes structure packing, but by mistake doesn't restore the original setting at the end. If this is intentional, you can give a #pragma nopackwarning directive at the end of an include file to disable the warning for this file.

The warning can be disabled altogether by #pragma warn -pck.

그래서 프로젝트 옵션에서 Warning 레벨을 selected로 하고 -wpck 를 찾아서

선택을 지워버렸는데도 계속해서 이게 뜹니다.

대충 structure를 packing한 다음 나중에 restore할 때 에러가 날 수도 있다는

얘기인 거 같은데... 제 코드에서 나오는 warning도 아니고 컴파일할 때 쓰는 헤더들에서

나오는 warning이라 당황스럽기도 하고 혹시 헤더 버전이 달라서 그런가 확인해 봤지만

빌더 6의 헤더가 맞았습니다.

그런데 왜 프로젝트 옵션에서 이 warning이 안뜨게 했을 때도 계속 해서 뜨는 걸까요?

다시 깔아야 하나...

+ -

관련 글 리스트
16982 [질문] W8059 Structure packing size has changed Compiler warning Zapster 1253 2002/03/28
Google
Copyright © 1999-2015, borlandforum.com. All right reserved.