메뉴 건너뛰기

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

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 날짜 최근 수정일
5 흥크립트로 만든 예제 2 [2] file 대슬 2118   2007-12-01 2008-03-17 04:37
 
4 흥크립트로 만들 때 알아둘 기본 사항 [6] 대슬 1693   2007-12-01 2008-03-17 04:37
common.mlc, Global.mlc 를 제외한 다른 모든 mlc 파일들은 스크립트 파일 이름과 일치하게 만들어야 읽을 수 있습니다. 예를 들어 MAIN.dlg (또는 txt) 에 대한 mlc 파일은 MAIN.mlc 로 저장해야 스크립트에서 읽어서 씁니다. MAIN에서 대슬랑미.dlg 로 갈아...  
3 흥크립트로 만든 예제 [1] file 대슬 2051   2007-12-01 2008-03-17 04:37
 
2 흥크립트 Ver0.9 변수 안의 변수 기능 [2] 혼돈 2208   2007-10-16 2008-03-17 04:37
상당히 고급기능이라 꼭 알 필요는 없지만, 잘 활용하면 배열이나 구조체 비슷하게 활용 가능합니다. 참고로 []를 쓰는 숫자변수와 {}를 쓰는 문자변수는 서로 다른 테이블을 쓰므로 이름이 겹쳐도 상관없습니다. [변수X] 1 [변수[변수X]] 10 {변수} "변수" {...  
1 흥크립트 0.9 새 기능 소개 [3] file 혼돈 2291   2007-10-15 2008-03-17 04:37