Форум программистов, компьютерный форум, киберфорум
Visual C++
Войти
Регистрация
Восстановить пароль
Блоги Сообщество Поиск Заказать работу  
 
Рейтинг 4.60/5: Рейтинг темы: голосов - 5, средняя оценка - 4.60
0 / 0 / 0
Регистрация: 23.11.2012
Сообщений: 103

Ошибки при компиляции

05.10.2013, 20:02. Показов 983. Ответов 2
Метки нет (Все метки)

Студворк — интернет-сервис помощи студентам
Скинули программу,у друга работает,у меня при запуске она зависает,при компиляции выскакиваем много ошибок,я начинающий,помогите исправить ошибки пожалуйста)
Проект прикрепил
Вот такие ошибки:
Кликните здесь для просмотра всего текста
------ Build started: Project: OS1, Configuration: Debug Win32 ------
Compiling...
main.cpp
c:\users\dmitry\desktop\os1\main.cpp(93) : 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.
d:\visio\vc\include\string.h(74) : see declaration of 'strcpy'
c:\users\dmitry\desktop\os1\main.cpp(223 ) : warning C4018: '<' : signed/unsigned mismatch
c:\users\dmitry\desktop\os1\main.cpp(302 ) : error C2360: initialization of 'bufsize' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(280 ) : see declaration of 'bufsize'
c:\users\dmitry\desktop\os1\main.cpp(302 ) : error C2360: initialization of 'Result4' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(243 ) : see declaration of 'Result4'
c:\users\dmitry\desktop\os1\main.cpp(302 ) : error C2360: initialization of 'Result3' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(233 ) : see declaration of 'Result3'
c:\users\dmitry\desktop\os1\main.cpp(302 ) : error C2360: initialization of 'Result2' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(220 ) : see declaration of 'Result2'
c:\users\dmitry\desktop\os1\main.cpp(302 ) : error C2360: initialization of 'Result1' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(210 ) : see declaration of 'Result1'
c:\users\dmitry\desktop\os1\main.cpp(302 ) : error C2360: initialization of 'new_str' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(203 ) : see declaration of 'new_str'
c:\users\dmitry\desktop\os1\main.cpp(302 ) : error C2360: initialization of 'dwBytes' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(199 ) : see declaration of 'dwBytes'
c:\users\dmitry\desktop\os1\main.cpp(302 ) : error C2360: initialization of 'hKeyResult' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(197 ) : see declaration of 'hKeyResult'
c:\users\dmitry\desktop\os1\main.cpp(335 ) : error C2360: initialization of 'bufsize' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(280 ) : see declaration of 'bufsize'
c:\users\dmitry\desktop\os1\main.cpp(335 ) : error C2360: initialization of 'Result4' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(243 ) : see declaration of 'Result4'
c:\users\dmitry\desktop\os1\main.cpp(335 ) : error C2360: initialization of 'Result3' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(233 ) : see declaration of 'Result3'
c:\users\dmitry\desktop\os1\main.cpp(335 ) : error C2360: initialization of 'Result2' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(220 ) : see declaration of 'Result2'
c:\users\dmitry\desktop\os1\main.cpp(335 ) : error C2360: initialization of 'Result1' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(210 ) : see declaration of 'Result1'
c:\users\dmitry\desktop\os1\main.cpp(335 ) : error C2360: initialization of 'new_str' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(203 ) : see declaration of 'new_str'
c:\users\dmitry\desktop\os1\main.cpp(335 ) : error C2360: initialization of 'dwBytes' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(199 ) : see declaration of 'dwBytes'
c:\users\dmitry\desktop\os1\main.cpp(335 ) : error C2360: initialization of 'hKeyResult' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(197 ) : see declaration of 'hKeyResult'
c:\users\dmitry\desktop\os1\main.cpp(335 ) : error C2196: case value '10003' already used
c:\users\dmitry\desktop\os1\main.cpp(343 ) : error C2360: initialization of 'bufsize' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(280 ) : see declaration of 'bufsize'
c:\users\dmitry\desktop\os1\main.cpp(343 ) : error C2360: initialization of 'Result4' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(243 ) : see declaration of 'Result4'
c:\users\dmitry\desktop\os1\main.cpp(343 ) : error C2360: initialization of 'Result3' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(233 ) : see declaration of 'Result3'
c:\users\dmitry\desktop\os1\main.cpp(343 ) : error C2360: initialization of 'Result2' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(220 ) : see declaration of 'Result2'
c:\users\dmitry\desktop\os1\main.cpp(343 ) : error C2360: initialization of 'Result1' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(210 ) : see declaration of 'Result1'
c:\users\dmitry\desktop\os1\main.cpp(343 ) : error C2360: initialization of 'new_str' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(203 ) : see declaration of 'new_str'
c:\users\dmitry\desktop\os1\main.cpp(343 ) : error C2360: initialization of 'dwBytes' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(199 ) : see declaration of 'dwBytes'
c:\users\dmitry\desktop\os1\main.cpp(343 ) : error C2360: initialization of 'hKeyResult' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(197 ) : see declaration of 'hKeyResult'
c:\users\dmitry\desktop\os1\main.cpp(343 ) : error C2196: case value '10003' already used
c:\users\dmitry\desktop\os1\main.cpp(363 ) : error C2360: initialization of 'o' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(357 ) : see declaration of 'o'
c:\users\dmitry\desktop\os1\main.cpp(363 ) : error C2360: initialization of 'bufsize' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(280 ) : see declaration of 'bufsize'
c:\users\dmitry\desktop\os1\main.cpp(363 ) : error C2360: initialization of 'Result4' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(243 ) : see declaration of 'Result4'
c:\users\dmitry\desktop\os1\main.cpp(363 ) : error C2360: initialization of 'Result3' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(233 ) : see declaration of 'Result3'
c:\users\dmitry\desktop\os1\main.cpp(363 ) : error C2360: initialization of 'Result2' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(220 ) : see declaration of 'Result2'
c:\users\dmitry\desktop\os1\main.cpp(363 ) : error C2360: initialization of 'Result1' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(210 ) : see declaration of 'Result1'
c:\users\dmitry\desktop\os1\main.cpp(363 ) : error C2360: initialization of 'new_str' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(203 ) : see declaration of 'new_str'
c:\users\dmitry\desktop\os1\main.cpp(363 ) : error C2360: initialization of 'dwBytes' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(199 ) : see declaration of 'dwBytes'
c:\users\dmitry\desktop\os1\main.cpp(363 ) : error C2360: initialization of 'hKeyResult' is skipped by 'case' label
c:\users\dmitry\desktop\os1\main.cpp(197 ) : see declaration of 'hKeyResult'
c:\users\dmitry\desktop\os1\main.cpp(363 ) : error C2196: case value '10003' already used
c:\users\dmitry\desktop\os1\main.cpp(372 ) : error C2601: 'SizeEdit' : local function definitions are illegal
c:\users\dmitry\desktop\os1\main.cpp(187 ): this line contains a '{' which has not yet been matched
c:\users\dmitry\desktop\os1\main.cpp(384 ) : error C2601: 'ReadFromReg' : local function definitions are illegal
c:\users\dmitry\desktop\os1\main.cpp(187 ): this line contains a '{' which has not yet been matched
c:\users\dmitry\desktop\os1\main.cpp(399 ) : error C2601: 'OnTray' : local function definitions are illegal
c:\users\dmitry\desktop\os1\main.cpp(187 ): this line contains a '{' which has not yet been matched
c:\users\dmitry\desktop\os1\main.cpp(416 ) : fatal error C1075: end of file found before the left brace '{' at 'c:\users\dmitry\desktop\os1\main.cpp(18 7)' was matched
Build log was saved at "file://c:\Users\Dmitry\Desktop\OS1\Debug\BuildL og.htm"
OS1 - 40 error(s), 2 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Вложения
Тип файла: rar OS1.rar (6.97 Мб, 4 просмотров)
0
Programming
Эксперт
39485 / 9562 / 3019
Регистрация: 12.04.2006
Сообщений: 41,671
Блог
05.10.2013, 20:02
Ответы с готовыми решениями:

Ошибки при компиляции Dll
Всем привет. При компиляции DLL Visual C++ (VS 2005) выдает ошибки: 1&gt; Creating library .\Debug/DLL_Callback.lib and object...

Ошибки при компиляции библиотеки
При попытке скомпилировать проект с библиотекой, компилятор выдает ошибку в строке подключения файла windows.h (неверный путь). Как я...

Минимальный проект (ошибки при компиляции)
Добрый день! Пытаюсь скомпилировать простой проект с использованием библиотек MFC. Код проекта взят из курса &quot;First Steps&quot;...

2
Автор FAQ
 Аватар для -=ЮрА=-
6614 / 4256 / 401
Регистрация: 08.08.2009
Сообщений: 10,325
Записей в блоге: 24
06.10.2013, 00:15
Цитата Сообщение от 11vmk Посмотреть сообщение
у друга работает,у меня при запуске она зависает
- не могло работать. Код октровенно был написан через 5-ую точку. Во множественном выборе кто-то не понимая вытер все {} оттого шли подобные предупреждения
Цитата Сообщение от 11vmk Посмотреть сообщение
is skipped by 'case' label
. Список грубых ошибок можно продолжать и продолжать, создалось впечатление что проект набит из кусков отдельных проектов. Вобщем дотянул до 0 ошибок, но смотреть отработку не стал.
Миниатюры
Ошибки при компиляции  
Вложения
Тип файла: rar OS1.rar (103.4 Кб, 3 просмотров)
1
0 / 0 / 0
Регистрация: 23.11.2012
Сообщений: 103
06.10.2013, 00:23  [ТС]
Цитата Сообщение от -=ЮрА=- Посмотреть сообщение
- не могло работать. Код октровенно был написан через 5-ую точку. Во множественном выборе кто-то не понимая вытер все {} оттого шли подобные предупреждения. Список грубых ошибок можно продолжать и продолжать, создалось впечатление что проект набит из кусков отдельных проектов. Вобщем дотянул до 0 ошибок, но смотреть отработку не стал.
вы правы,коды из методички кусками
0
Надоела реклама? Зарегистрируйтесь и она исчезнет полностью.
inter-admin
Эксперт
29715 / 6470 / 2152
Регистрация: 06.03.2009
Сообщений: 28,500
Блог
06.10.2013, 00:23
Помогаю со студенческими работами здесь

Двумерные массивы, ошибки при компиляции
Помогите, пожалуйста. Задача такая: Дана матрица размером n*m. Преобразовать матрицу, удалив из нее i-тую строку (и/или столбец( по...

Ошибки в стандартных заголовочных файлах при компиляции проекта
Старый проект на С++ пытаюсь скомпилировать в VS2008 выдает 66 ошибкок в файлах: string.h atalloc.h wchar.h atlchecked.h ...

Ошибки после компиляции на Visual Express 2012.Ошибки в теме
Добрый вечер ребят помогите пожалуйста.Программа написана на Visual Express 2012.Обясните что поменять чтобы зароботало. После компиляции...

Состояние "проблемы не найдены" но при компиляции всё равно возникли ошибки сборки
#include &lt;iostream&gt; #include &lt;string&gt; /*#include &lt;math.h&gt; #include &lt;ctime&gt;*/ using namespace std; class Human { ...

с2079 и с2228 ошибки при компиляции ниже участок кода, с которым праблема и скрины ошибки
// ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ bool game = true; // КЛАССЫ class Me; class mob { public: void showHpMp()


Искать еще темы с ответами

Или воспользуйтесь поиском по форуму:
3
Ответ Создать тему
Новые блоги и статьи
SDL3 для Web (WebAssembly): Обработчик клика мыши в браузере ПК и касания экрана в браузере на мобильном устройстве
8Observer8 02.02.2026
Содержание блога Для начала пошагово создадим рабочий пример для подготовки к экспериментам в браузере ПК и в браузере мобильного устройства. Потом напишем обработчик клика мыши и обработчик. . .
Философия технологии
iceja 01.02.2026
На мой взгляд у человека в технических проектах остается роль генерального директора. Все остальное нейронки делают уже лучше человека. Они не могут нести предпринимательские риски, не могут. . .
SDL3 для Web (WebAssembly): Вывод текста со шрифтом TTF с помощью SDL3_ttf
8Observer8 01.02.2026
Содержание блога В этой пошаговой инструкции создадим с нуля веб-приложение, которое выводит текст в окне браузера. Запустим на Android на локальном сервере. Загрузим Release на бесплатный. . .
SDL3 для Web (WebAssembly): Сборка C/C++ проекта из консоли
8Observer8 30.01.2026
Содержание блога Если вы откроете примеры для начинающих на официальном репозитории SDL3 в папке: examples, то вы увидите, что все примеры используют следующие четыре обязательные функции, а. . .
SDL3 для Web (WebAssembly): Установка Emscripten SDK (emsdk) и CMake для сборки C и C++ приложений в Wasm
8Observer8 30.01.2026
Содержание блога Для того чтобы скачать Emscripten SDK (emsdk) необходимо сначало скачать и уставить Git: Install for Windows. Следуйте стандартной процедуре установки Git через установщик. . . .
SDL3 для Android: Подключение Box2D v3, физика и отрисовка коллайдеров
8Observer8 29.01.2026
Содержание блога Box2D - это библиотека для 2D физики для анимаций и игр. С её помощью можно определять были ли коллизии между конкретными объектами. Версия v3 была полностью переписана на Си, в. . .
Инструменты COM: Сохранение данный из VARIANT в файл и загрузка из файла в VARIANT
bedvit 28.01.2026
Сохранение базовых типов COM и массивов (одномерных или двухмерных) любой вложенности (деревья) в файл, с возможностью выбора алгоритмов сжатия и шифрования. Часть библиотеки BedvitCOM Использованы. . .
SDL3 для Android: Загрузка PNG с альфа-каналом с помощью SDL_LoadPNG (без SDL3_image)
8Observer8 28.01.2026
Содержание блога SDL3 имеет собственные средства для загрузки и отображения PNG-файлов с альфа-каналом и базовой работы с ними. В этой инструкции используется функция SDL_LoadPNG(), которая. . .
КиберФорум - форум программистов, компьютерный форум, программирование
Powered by vBulletin
Copyright ©2000 - 2026, CyberForum.ru