![]() |
Показать все 14 сообщений этой темы на одной странице |
HLFX.Ru Forum (https://hlfx.ru/forum/index.php)
- Half-Life SDK (https://hlfx.ru/forum/forumdisplay.php?forumid=8)
-- Visual C++ 2005 (https://hlfx.ru/forum/showthread.php?threadid=3485)
Visual C++ 2005
Есть "HL1_src_vs2005.zip" и Visual C++ 2005 Express Edition. В последней открываю "cl_dll.dsp", Build Solution выдает такой лог:
code:
1>------ Build started: Project: cl_dll, Configuration: Release Win32 ------ 1>Compiling... 1>tripmine.cpp 1>d:\games\hl_sdk\hl1_src_vs2005\dlls\extdll.h(42) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory 1>squeakgrenade.cpp 1>d:\games\hl_sdk\hl1_src_vs2005\dlls\extdll.h(42) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory 1>shotgun.cpp 1>d:\games\hl_sdk\hl1_src_vs2005\dlls\extdll.h(42) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory 1>satchel.cpp 1>d:\games\hl_sdk\hl1_src_vs2005\dlls\extdll.h(42) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory 1>rpg.cpp 1>d:\games\hl_sdk\hl1_src_vs2005\dlls\extdll.h(42) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory 1>python.cpp 1>d:\games\hl_sdk\hl1_src_vs2005\dlls\extdll.h(42) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory 1>mp5.cpp 1>d:\games\hl_sdk\hl1_src_vs2005\dlls\extdll.h(42) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory 1>interface.cpp 1>..\common\interface.cpp(64) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory 1>hornetgun.cpp 1>d:\games\hl_sdk\hl1_src_vs2005\dlls\extdll.h(42) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory 1>hl_wpn_glock.cpp 1>d:\games\HL_SDK\HL1_src_vs2005\dlls\extdll.h(42) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory 1>hl_weapons.cpp 1>d:\games\HL_SDK\HL1_src_vs2005\dlls\extdll.h(42) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory 1>hl_baseentity.cpp 1>d:\games\HL_SDK\HL1_src_vs2005\dlls\extdll.h(42) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory 1>handgrenade.cpp 1>d:\games\hl_sdk\hl1_src_vs2005\dlls\extdll.h(42) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory 1>gauss.cpp 1>d:\games\hl_sdk\hl1_src_vs2005\dlls\extdll.h(42) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory 1>egon.cpp 1>d:\games\hl_sdk\hl1_src_vs2005\dlls\extdll.h(42) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory 1>crowbar.cpp 1>d:\games\hl_sdk\hl1_src_vs2005\dlls\extdll.h(42) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory 1>crossbow.cpp 1>d:\games\hl_sdk\hl1_src_vs2005\dlls\extdll.h(42) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory 1>inputw32.cpp 1>.\inputw32.cpp(22) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory 1>in_camera.cpp 1>.\in_camera.cpp(18) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory 1>hud_servers.cpp 1>.\hud_servers.cpp(15) : fatal error C1083: Cannot open include file: 'winsock.h': No such file or directory 1>Generating Code... 1>Build log was saved at "file://d:\games\HL_SDK\HL1_src_vs2005\cl_dll\Release\BuildLog.htm" 1>cl_dll - 20 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
в старой студии, положить в папку со студией или с исходниками мода
Спасибо, там оказывается не хватает таких файлов на 20-ть метров.
Потом не хватает LIB файлов еще на 40.
А вот далее походу что-то серьезное:
code:
1>------ Build started: Project: cl_dll, Configuration: Release Win32 ------ 1>Linking... 1> Creating library .\Release/client.lib and object .\Release/client.exp 1>in_camera.obj : error LNK2019: unresolved external symbol __imp__GetCursorPos@4 referenced in function "void __cdecl CAM_StartMouseMove(void)" (?CAM_StartMouseMove@@YAXXZ) 1>inputw32.obj : error LNK2001: unresolved external symbol __imp__GetCursorPos@4 1>in_camera.obj : error LNK2019: unresolved external symbol __imp__SetCursorPos@8 referenced in function _CAM_Think 1>inputw32.obj : error LNK2001: unresolved external symbol __imp__SetCursorPos@8 1>inputw32.obj : error LNK2019: unresolved external symbol __imp__SystemParametersInfoA@16 referenced in function _IN_ActivateMouse 1>.\Release\client.dll : fatal error LNK1120: 3 unresolved externals 1>Build log was saved at "file://d:\games\HL_SDK\HL1_src_vs2005\cl_dll\Release\BuildLog.htm" 1>cl_dll - 6 error(s), 0 warning(s) ========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
хз использую без шаманств, все работает.
code:
Файл: HL1_src_vs2005.zip CRC-32: 77d092dd MD4: fc9ce5b95c34224f947f2611b9ed0566 MD5: 0fe908f66afe73c0d58254855741c8ba SHA-1: daefb3c28849103ad648f263ec6a165c443dda12
отсюда скачан, сижу на 2008 Express Edition
code:
1>------ Построение начато: проект: cl_dll, Конфигурация: Debug Win32 ------ 1>Компиляция... 1>hud_servers.cpp 1>c:\program files\microsoft sdks\windows\v6.0a\include\windef.h(288) : error C2040: HSPRITE: "HSPRITE__ *" отличается по уровням косвенного обращения от "int" 1>in_camera.cpp 1>c:\program files\microsoft sdks\windows\v6.0a\include\windef.h(288) : error C2040: HSPRITE: "HSPRITE__ *" отличается по уровням косвенного обращения от "int" 1>inputw32.cpp 1>c:\program files\microsoft sdks\windows\v6.0a\include\windef.h(288) : error C2040: HSPRITE: "HSPRITE__ *" отличается по уровням косвенного обращения от "int" 1>train.cpp 1>tri.cpp 1>util.cpp 1>vgui_ClassMenu.cpp
не надо ни в коем случае трогать WinAPI. Лучше переопределить сам HSPRITE.
__________________
My Projects: download page
F.A.Q по XashNT
Блог разработчика в телеграме
C:\DOCUME~1\C4C5~1\LOCALS~1\Temp\a33328if(72) : see declaration of 'size_t'
Government-Man , хи, а я вообще не знал что это и на int заменил
__________________
Временная зона GMT. Текущее время 19:12. | Показать все 14 сообщений этой темы на одной странице |
На основе vBulletin версии 2.3.0
Авторское право © Jelsoft Enterprises Limited 2000 - 2002.
Дизайн и программирование: Crystice Softworks © 2005 - 2024