메뉴 건너뛰기

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

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
185 자동화된 Lua 스크립트의 문서화 - LDoc 노루발 2021-01-11 43224
» VC++ 2008 Express Edition에서 문D라이브 링크 [2] A.미스릴 2008-04-17 13090
183 cocos2d-x 터치와 업데이트 활성화 시키기 똥똥배 2011-10-27 10656
182 문D 질문 #2 [1] A.미스릴 2008-06-01 8797
181 MFC 더블 버퍼링 질문 [2] A.미스릴 2008-06-13 6602
180 문D라이브로 만드는 더블드래곤.. 질문입니다 [4] 하와이안 2009-01-15 5550
179 임의의 점이 다각형 내부에 있는지 검사하는 함수 똥똥배 2008-04-14 5358
178 문D라이브로 더블드래곤을 만들자(11) file 똥똥배 2008-05-17 4647
177 문D라이브로 더블드래곤을 만들자(1) [2] file 똥똥배 2008-04-16 4479
176 씨언어 질문 (내일 시험 ㄷㄷ) [1] 쿠로쇼우 2008-06-17 4331
175 문D라이브도 더블버퍼링이 필요한가요? [3] A.미스릴 2008-06-28 4223
174 문D라이브로 더블드래곤을 만들자(10) file 똥똥배 2008-05-17 4065
173 #define에 대해 [1] A.미스릴 2008-05-19 4061
172 클레스들을 담은 헤더들의 혼란 [4] A.미스릴 2008-06-21 3892
171 srand에 관해서 [4] A.미스릴 2008-07-15 3867
170 문D 질문 [5] A.미스릴 2008-05-26 3847
169 흥크립트에 궁금한점 [4] 상상악수 2008-08-21 3835
168 C++ 질문 [1] A.미스릴 2008-12-21 3818
167 TinyXML의 한계 [2] 똥똥배 2011-12-11 3751
166 문D라이브 2008년 5월 19일 버전 [2] 혼돈 2008-06-02 3747