Ru/Compiling under VS2010: Difference between revisions

From Valve Developer Community
< Ru
Jump to navigation Jump to search
No edit summary
(название)
Line 1: Line 1:
{{DISPLAYTITLE:Компиляция под VS2008}}{{otherlang2
{{DISPLAYTITLE:Компиляция под VS2010}}{{otherlang2
|en=:Compiling under VS2010}}
|en=:Compiling under VS2010}}



Revision as of 23:33, 8 August 2010

Template:Otherlang2

Visual studio logo.png

Visual Studio 2010 это лучший выбор для Source. Вы можете использовать бесплатную версию C++ Express.

Конвертирование Alien Swarm

Конвертирование проекта сервера Alien Swarm в VS2010 приведет к ошибке "invalid characters in path". Для того, чтобы исправить её, откройте game\server\swarm_sdk_server.vcproj в текстовом редакторе и уберите "' $File" из строчки 2232.

Отладка

  1. Следуйте инструкции для исправления ошибок отладки в VS2008, которая применима и здесь.
  2. Нажмите правой кнопкой на проектах клиента и сервера в VS и перейдите в Properties > Configuration > General. Измените Target Name на client и server соответственно.

Исправление предупреждений

Если вы хотите убрать предупреждения "precompiled header" при полной компиляции, откройте эти файлы в вашем проекте клиента и переместите #include "cbase.h" вверх на первую строчку:

  1. hud_locator.cpp
  2. hud_credits.cpp
  3. hud_flashlight.cpp

Компиляция под Linux

VS 2010 вводит новый формат файла проекта (.vcxproj) который несовместим с инструментом SDK VprojToMake.


Warning icon.png
This article has been marked as a candidate for speedy deletion for the following reason:
Use {{Flag|en}} instead.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.

Доступно неофициальное обновление, включающее поддержку.

Смотрите также

Warning icon.png
This article has been marked as a candidate for speedy deletion for the following reason:
Use {{Flag|en}} instead.
If you object to this decision, then please discuss why here (If you make a discussion section also create this redirect page). If this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators / Moderators - Remember to check if anything links here and the page history before deleting.

Запуск из Visual Studio