메뉴 건너뛰기

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

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 질문 있습니다.. C언어 인거 같은데 [7] 포오ㅏ로 2005-02-24 1957
184 밑에 포와로님의 질문 답 [4] 대슬 2005-02-24 1900
183 흑곰님 질문 [2] 라컨 2005-08-22 2015
182 퀴즈소스입니다 허클베리핀님 라컨 2005-08-23 2546
181 비베 질문 [2] 재피디 2005-09-10 1888
180 액션알피지 원거리 무기 질문 [8] 아리포 2006-01-18 1741
179 여러분 질문있어요. 성심성의껏좀 알려주세요 흑흑 [6] 케르메스 2006-02-11 2022
178 [질문]알만툴 게임 [1] 허클베리핀 2006-12-28 1974
177 똥똥배의 게임대회 이야기(1) 혼돈 2007-02-06 2953
176 똥똥배의 게임대회 이야기(2) [2] 혼돈 2007-02-07 2816
175 똥똥배의 게임대회 이야기(3) [1] 혼돈 2007-02-08 3007
174 똥똥배의 게임대회 이야기(4) [1] 혼돈 2007-02-10 2881
173 스크립트 질문좀 하겠습니다....이벤트에 대한것!! [2] 여유 2007-04-23 1859
172 질문요.C++ [7] 질문자01 2007-05-10 2729
171 흥크립트 0.9 새 기능 소개 [3] file 혼돈 2007-10-15 2289
170 흥크립트 Ver0.9 변수 안의 변수 기능 [2] 혼돈 2007-10-16 2208
169 혼돈형한테 질문 (페인트샾 관련) [2] file 장펭돌 2007-11-19 939
168 혼돈형에게 질문! [3] 장펭돌 2007-11-28 1851
167 질문 2가지+1 [2] file Wonder 2007-11-30 1964
166 흥크립트로 만든 예제 [1] file 대슬 2007-12-01 2051