|
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 ==========
0
|
|
| 05.10.2013, 20:02 | |
|
Ответы с готовыми решениями:
2
Ошибки при компиляции Dll Ошибки при компиляции библиотеки Минимальный проект (ошибки при компиляции) |
|
|
|||
| 06.10.2013, 00:15 | |||
|
1
|
|||
|
0 / 0 / 0
Регистрация: 23.11.2012
Сообщений: 103
|
|
| 06.10.2013, 00:23 [ТС] | |
|
0
|
|
| 06.10.2013, 00:23 | |
|
Помогаю со студенческими работами здесь
3
Двумерные массивы, ошибки при компиляции Ошибки в стандартных заголовочных файлах при компиляции проекта Ошибки после компиляции на Visual Express 2012.Ошибки в теме Состояние "проблемы не найдены" но при компиляции всё равно возникли ошибки сборки с2079 и с2228 ошибки при компиляции ниже участок кода, с которым праблема и скрины ошибки Искать еще темы с ответами Или воспользуйтесь поиском по форуму: |
|
Новые блоги и статьи
|
|||
|
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(), которая. . .
|