메뉴 건너뛰기

창작에 관련된 질문이나 간단한 팁, 예제를 올리는 곳

SDK도 최신버전으로 깔아주었고 도구 설정도 적절하게 했습니다
모든 셋팅이 완료되고 링크를 해보니까 아래와 같은 문장이 쭉쭉나오는군요
warning은 굉장히 많이 나오는데 실제로 컴파일을 막아버린 부분은
LINK : fatal error LNK1104: 'LIBC.lib' 파일을 열 수 없습니다.
군요 ㅡㅡ;
------ 빌드 시작: 프로젝트: MoonDLib, 구성: Debug Win32 ------
컴파일하고 있습니다...
cl : 명령줄 warning D9035 : 'Wp64' 옵션은 더 이상 사용되지 않으므로 이후 릴리스에서 제거될 예정입니다.
donglib.cpp
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(279) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(74) : 'strcpy' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(292) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : 'strcat' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(301) : warning C4996: 'itoa': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _itoa. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\stdlib.h(862) : 'itoa' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(302) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : 'strcat' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(675) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(74) : 'strcpy' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(778) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : 'strcat' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(795) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : 'strcat' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(806) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : 'strcat' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(945) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(74) : 'strcpy' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(995) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(74) : 'strcpy' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(1173) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(74) : 'strcpy' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(1365) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(74) : 'strcpy' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(1366) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(74) : 'strcpy' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(1397) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(74) : 'strcpy' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(1401) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : 'strcat' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(1448) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : 'strcat' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(1470) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(74) : 'strcpy' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(1490) : warning C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(237) : 'fopen' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(1555) : warning C4996: 'strncpy': This function or variable may be unsafe. Consider using strncpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(157) : 'strncpy' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(1608) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(74) : 'strcpy' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(1624) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : 'strcat' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(1625) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : 'strcat' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(1637) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : 'strcat' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(1638) : warning C4996: 'strcat': This function or variable may be unsafe. Consider using strcat_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(79) : 'strcat' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(1716) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(74) : 'strcpy' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\donglib.cpp(1728) : warning C4996: 'sprintf': This function or variable may be unsafe. Consider using sprintf_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\stdio.h(366) : 'sprintf' 선언을 참조하십시오.
Dsutil.cpp
JDirectDraw.cpp
c:\program files\c++ 자료들\moondlib\1\jdirectdraw.cpp(34) : warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(207) : 'strdup' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\jdirectdraw.cpp(37) : warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(207) : 'strdup' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\jdirectdraw.cpp(82) : warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(207) : 'strdup' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\jdirectdraw.cpp(116) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(74) : 'strcpy' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\jdirectdraw.cpp(134) : warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(74) : 'strcpy' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\jdirectdraw.cpp(135) : warning C4267: 'return' : 'size_t'에서 'uint'(으)로 변환하면서 데이터가 손실될 수 있습니다.
JDirectDrawImp.cpp
c:\program files\c++ 자료들\moondlib\1\jdirectdrawimp.cpp(398) : warning C4267: '인수' : 'size_t'에서 'int'(으)로 변환하면서 데이터가 손실될 수 있습니다.
c:\program files\c++ 자료들\moondlib\1\jdirectdrawimp.cpp(783) : warning C4267: '인수' : 'size_t'에서 'int'(으)로 변환하면서 데이터가 손실될 수 있습니다.
JDirectDrawImpID.cpp
c:\program files\c++ 자료들\moondlib\1\jdirectdrawimpid.cpp(229) : warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(207) : 'strdup' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\jdirectdrawimpid.cpp(248) : warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(207) : 'strdup' 선언을 참조하십시오.
JResourceManager.cpp
c:\program files\c++ 자료들\moondlib\1\jresourcemanager.cpp(13) : warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(207) : 'strdup' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\jresourcemanager.cpp(61) : warning C4996: 'mbstowcs': This function or variable may be unsafe. Consider using mbstowcs_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\stdlib.h(499) : 'mbstowcs' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\jresourcemanager.cpp(63) : warning C4996: 'mbstowcs': This function or variable may be unsafe. Consider using mbstowcs_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\stdlib.h(499) : 'mbstowcs' 선언을 참조하십시오.
c:\program files\c++ 자료들\moondlib\1\jresourcemanager.cpp(113) : warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
        c:\program files\microsoft visual studio 9.0\vc\include\string.h(207) : 'strdup' 선언을 참조하십시오.
main.cpp
코드를 생성하고 있습니다...
매니페스트를 리소스에 컴파일하고 있습니다...
Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
Copyright (C) Microsoft Corporation.  All rights reserved.
링크하고 있습니다...
LINK : fatal error LNK1104: 'LIBC.lib' 파일을 열 수 없습니다.
빌드 로그가 "file://c:\Program Files\C++ 자료들\MoonDLib\1\Debug\BuildLog.htm"에 저장되었습니다.
MoonDLib - 오류: 1개, 경고: 41개
========== 빌드: 성공 0, 실패 1, 최신 0, 생략 0 ==========
전 9.0(2008)이랑 6.0버전밖에 없음.. 7.1버전은 없습니다. 위는 9.0으로 링킹헀을때 뜬 것이고
그래서 저는 블로그에 있는 옛날샘플이 아닌 혼둠에 올리신 샘플로 다시 링킹해봤습니다
유지보수를 많이 하셨는지 Warning의 수는 적더군요
------ 빌드 시작: 프로젝트: MoonD, 구성: Release Win32 ------
컴파일하고 있습니다...
cl : 명령줄 warning D9035 : 'Wp64' 옵션은 더 이상 사용되지 않으므로 이후 릴리스에서 제거될 예정입니다.
Ogg.cpp
main.cpp
JResourceManager.cpp
.\JResourceManager.cpp(13) : warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h(207) : 'strdup' 선언을 참조하십시오.
.\JResourceManager.cpp(113) : warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h(207) : 'strdup' 선언을 참조하십시오.
JDirectDrawImpID.cpp
.\JDirectDrawImpID.cpp(229) : warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h(207) : 'strdup' 선언을 참조하십시오.
.\JDirectDrawImpID.cpp(246) : warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h(207) : 'strdup' 선언을 참조하십시오.
JDirectDrawImp.cpp
.\JDirectDrawImp.cpp(446) : warning C4267: '인수' : 'size_t'에서 'int'(으)로 변환하면서 데이터가 손실될 수 있습니다.
.\JDirectDrawImp.cpp(832) : warning C4267: '인수' : 'size_t'에서 'int'(으)로 변환하면서 데이터가 손실될 수 있습니다.
JDirectDraw.cpp
.\JDirectDraw.cpp(34) : warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h(207) : 'strdup' 선언을 참조하십시오.
.\JDirectDraw.cpp(37) : warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h(207) : 'strdup' 선언을 참조하십시오.
.\JDirectDraw.cpp(82) : warning C4996: 'strdup': The POSIX name for this item is deprecated. Instead, use the ISO C++ conformant name: _strdup. See online help for details.
        C:\Program Files\Microsoft Visual Studio 9.0\VC\include\string.h(207) : 'strdup' 선언을 참조하십시오.
.\JDirectDraw.cpp(135) : warning C4267: 'return' : 'size_t'에서 'uint'(으)로 변환하면서 데이터가 손실될 수 있습니다.
Game.cpp
Dsutil.cpp
DScript.cpp
donglib.cpp
calc.cpp
코드를 생성하고 있습니다...
리소스를 컴파일하고 있습니다...
Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0
Copyright (C) Microsoft Corporation.  All rights reserved.
.\EveryOne.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'.
빌드 로그가 "file://c:\Program Files\C++ 자료들\MoonDLib\또다른버전\Release\BuildLog.htm"에 저장되었습니다.
MoonD - 오류: 1개, 경고: 11개
========== 빌드: 성공 0, 실패 1, 최신 0, 생략 0 ==========
.\EveryOne.rc(10) : fatal error RC1015: cannot open include file 'afxres.h'.
라는 에러때문에 링킹을 못했습니다
...............................
cannot open include file 'afxres.h'
afxres.h를 열지 못했다는 뜻 같은데, 어째서 열지 못하는지 모르겠네요 ㅡ.ㅡ;
어떤 원인으로 일어나는건지..
헤더파일 첨부가 안되있나?
조회 수 :
13090
등록일 :
2008.04.17
04:07:47 (*.234.10.203)
엮인글 :
게시글 주소 :
https://hondoom.com/zbxe/index.php?mid=study&document_srl=190256

똥똥배

2008.04.17
07:13:43
(*.239.144.2)

http://blog.naver.com/ybill?Redirect=Log&logNo=120037589833

여기를 참조해 보세요. 저도 2008은 안 써봐서 잘 모르겠지만...
warning은 다 잡을 수 있긴 한데 문라이브 부분은 문진섭님이 만드신 거라 함부러 건드리기 그래서 놔둔 겁니다.
지금까지 쓰면서 별 문제도 없어 안정성도 검증 되었구요.

A.미스릴

2008.04.17
07:56:56
(*.234.10.203)
afxres.h 라는 헤더파일을 만들어서
#include <winresrc.h>
#define IDC_STATIC (-1)
라는 소스를 적은 후 컴파일했더니 잘되네요 'ㅅ'
List of Articles
번호 제목 글쓴이 날짜 조회 수sort
85 흥크립트 질문 [3] A.미스릴 2007-12-07 1729
84 흥크립트로 만든 예제 4 file 대슬 2007-12-02 1723
83 질문 하나더. [3] 흑곰 2008-02-13 1715
82 아아, 그렇다면... 흥크립트에서 [1] 장펭돌 2008-02-02 1712
81 흥크립트 또 질문 [2] A.미스릴 2008-01-02 1712
80 흥크립트에대해. [16] 궤레브 2008-02-06 1711
79 흥크립트 궁금한점. [5] 장펭돌 2008-01-31 1704
78 {질문}그림에대한 질문일세. [5] 슈퍼타이 2008-01-30 1703
77 홍크립트에 질문이 있어서 왔스므니다. [3] X-tra 2007-12-07 1699
76 흥크립트 win모드와 전체화면의 속도 차이 있나요? [4] 흑곰 2008-02-13 1698
75 그러고보니, 흥크립트에서.. [1] 장펭돌 2008-03-10 1693
74 흥크립트로 만들 때 알아둘 기본 사항 [6] 대슬 2007-12-01 1693
73 흥크립트 질문! [2] 네모상자 2008-01-28 1692
72 흥크립트 반전 버그 원인발견, 그리고 그 후폭풍 [4] 똥똥배 2008-01-15 1691
71 [re] 똥똥배님께 질문 [1] 똥똥배 2008-01-09 1682
70 흥크립트, 이건 답변 안해주신듯... [1] 장펭돌 2008-02-02 1669
69 질문! [4] file DOH 2008-02-14 1616
68 혼돈님께 질문 흑곰 2007-12-25 1596
67 흥크립트 개선점 흑곰 2008-02-08 1578
66 [re] 갑자기 급질문.. [1] 똥똥배 2008-02-08 1548