Показать полную графическую версию : [решено] Среда программирования для Graphics.h
Glareone
15-06-2010, 20:17
Доброго времени суток,форумчане.
Столкнулся сегодня с необходимостью сделать работу с использованием <graphics.h>.
Никак не могу найти подходящего компилятора(или редактора кода наподобие Scite+компилятор),который умел бы с ним работать.(borland builder не работает,не держит BGI)
На windows7 64bit отказывается корректно работать borland C 5.5 со встроенным редактором Scite, а другого рабочего никак не найду.
Посоветуйте,какой лучше скачать, чтобы быстрее всего его можно было настроить и начать заниматься задачей.(можно не для windows7,а для winXP sp3 32bit(стоит на VMware))
Code::blocks + mingw (http://www.codeblocks.org/), DevC++ + mingw (http://sourceforge.net/projects/dev-cpp/).
В прикрепленном архиве graphics.h + libbgi.a + скриншот либ которые нужно подсоединить в CodeBlocks. (добавляется так: Settings->Compiler and debuger->Linker settings)
Evgeniy.h
27-11-2010, 23:34
С архивом сделал все как надо, но выдаёт ошибку:
C:\Program Files\CodeBlocks\MinGW\lib\libbgi.a(drawing.o):drawing.cxx:(.text+0x2c2)||undefined reference to `_OleLoadPicture@20'|
||=== Build finished: 1 errors, 0 warnings ===|
при включении в код initgraph(&i,&j,"");
Как решить проблему?
Evgeniy.h
28-11-2010, 00:33
Хм, проблему решил)
Просто тупо добавив все библиотеки в Link libraries и поместя в папку с main.cpp - msvcr70.dll
И подключил:
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <graphics.h>
#include <windows.h>
Добрый день. Помогите пожалуйста.
ganselo, Code::blocks + mingw, DevC++ + mingw.
В прикрепленном архиве graphics.h + libbgi.a + скриншот либ которые нужно подсоединить в CodeBlocks. (добавляется так: Settings->Compiler and debuger->Linker settings) »
Сделал как Вы сказали, но не получается скомпилировать простую программу на Си (именно Си) в CodeBloks 10.05 (Windows 7):
#include <stdio.h>
#include <stdlib.h>
#include <graphics.h>
#include <conio.h>
main()
{
initwindow ( 400, 300 ); // открыть окно для графики 400 на 300
getch(); // ждем нажатия клавиши
closegraph(); // закрыть окно
Build messages:
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\graphics.h|30|error: sstream: No such file or directory|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\graphics.h|224|error: expected ')' before '*' token|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\graphics.h|228|error: expected ')' before '*' token|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\graphics.h|229|error: expected ')' before '*' token|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\graphics.h|235|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'getrefreshingbgi'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\graphics.h|239|error: expected ')' before '*' token|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\graphics.h|251|error: expected ')' before 'value'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\graphics.h|256|error: expected ';', ',' or ')' before '=' token|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\graphics.h|269|error: expected ';', ',' or ')' before '=' token|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\graphics.h|278|error: expected ';', ',' or ')' before '=' token|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\graphics.h|300|error: expected ';', ',' or ')' before '=' token|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\graphics.h|306|error: expected ';', ',' or ')' before '=' token|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\graphics.h|310|error: expected ';', ',' or ')' before '=' token|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\graphics.h|324|error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\graphics.h|325|error: expected ')' before ':' token|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\graphics.h|326|error: expected declaration specifiers or '...' before 'std'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\graphics.h|331|error: expected ';', ',' or ')' before '&' token|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\graphics.h|332|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ismouseclick'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\graphics.h|333|error: expected '=', ',', ';', 'asm' or '__attribute__' before 'isresizeevent'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\graphics.h|337|error: expected declaration specifiers or '...' before 'bool'|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\graphics.h|340|error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\graphics.h|341|error: expected ')' before '*' token|
c:\program files\codeblocks\mingw\bin\..\lib\gcc\mingw32\4.4.1\..\..\..\..\include\graphics.h|343|error: expected ')' before '*' token|
C:\1\1\main.c|7|warning: return type defaults to 'int'|
C:\1\1\main.c||In function 'main':|
C:\1\1\main.c|8|warning: implicit declaration of function 'initwindow'|
C:\1\1\main.c|10|warning: implicit declaration of function 'closegraph'|
||=== Build finished: 23 errors, 3 warnings ===|
}
Делаю так: File-New-Project...-Console Application-выбираю "C", называю проект (и выбираю каталоги), компилятор GCC.
lagootinyurec
29-10-2011, 18:52
такая же проблема. Подскажите как решить?
Delirium
31-10-2011, 03:59
lagootinyurec, а что, читать посты не умеем? Вроде ясно написано, как решается проблема.
Архив битый. Перезалейте пожалуйста.
art13, Проверил, всё нормально открылось\распаковалось, попробуйте перекачать его снова.
Спасибо получилось. Качал из ubuntu. Там похоже архиватор не мог распаковать.
streetranger
14-04-2012, 16:22
А на Семерку точно также ставить?
Сделал все как сказано, перерыл весь гугл и ничего... ошибки такие же как и у RF3557. Помогите, пожалуйста.
Skifskii
24-02-2015, 16:54
Доброго времени суток. Нуждаюсь в помощи
сделал все как сказали но компилятор все равно выдает ошибку попутно перекидывая меня в библиотеку заголовочного кода подсвечивая строку #include <sstream>
Ошибка: c:\qt\mingw\include\graphics.h|30|fatal error: sstream: No such file or directory|
||=== Build failed: 1 error(s), 0 warning(s) (0 minute(s), 0 second(s)) ===|
Можно посмотреть весь проект?
© OSzone.net 2001-2012
vBulletin v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.