Компьютерный форум OSzone.net  

Компьютерный форум OSzone.net (http://forum.oszone.net/index.php)
-   Программирование и базы данных (http://forum.oszone.net/forumdisplay.php?f=21)
-   -   [решено] Среда программирования для Graphics.h (http://forum.oszone.net/showthread.php?t=178258)

Glareone 15-06-2010 20:17 1434780

Среда программирования для Graphics.h
 
Доброго времени суток,форумчане.
Столкнулся сегодня с необходимостью сделать работу с использованием <graphics.h>.
Никак не могу найти подходящего компилятора(или редактора кода наподобие Scite+компилятор),который умел бы с ним работать.(borland builder не работает,не держит BGI)
На windows7 64bit отказывается корректно работать borland C 5.5 со встроенным редактором Scite, а другого рабочего никак не найду.
Посоветуйте,какой лучше скачать, чтобы быстрее всего его можно было настроить и начать заниматься задачей.(можно не для windows7,а для winXP sp3 32bit(стоит на VMware))

ganselo 15-06-2010 21:08 1434813

Вложений: 1
Code::blocks + mingw, DevC++ + mingw.
В прикрепленном архиве graphics.h + libbgi.a + скриншот либ которые нужно подсоединить в CodeBlocks. (добавляется так: Settings->Compiler and debuger->Linker settings)

Evgeniy.h 27-11-2010 23:34 1553117

С архивом сделал все как надо, но выдаёт ошибку:
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 1553155

Хм, проблему решил)
Просто тупо добавив все библиотеки в Link libraries и поместя в папку с main.cpp - msvcr70.dll
И подключил:
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <graphics.h>
#include <windows.h>

RF3557 16-07-2011 07:07 1714393

Добрый день. Помогите пожалуйста.

ganselo,
Цитата:

Цитата 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 1784445

такая же проблема. Подскажите как решить?

Delirium 31-10-2011 03:59 1785427

lagootinyurec, а что, читать посты не умеем? Вроде ясно написано, как решается проблема.

art13 12-02-2012 09:16 1856729

Архив битый. Перезалейте пожалуйста.

Drongo 12-02-2012 14:31 1856907

art13, Проверил, всё нормально открылось\распаковалось, попробуйте перекачать его снова.

art13 16-02-2012 11:01 1859972

Спасибо получилось. Качал из ubuntu. Там похоже архиватор не мог распаковать.

streetranger 14-04-2012 16:22 1899564

А на Семерку точно также ставить?

Vadim09 04-08-2012 00:01 1964420

Сделал все как сказано, перерыл весь гугл и ничего... ошибки такие же как и у RF3557. Помогите, пожалуйста.

Skifskii 24-02-2015 16:54 2475332

Доброго времени суток. Нуждаюсь в помощи

сделал все как сказали но компилятор все равно выдает ошибку попутно перекидывая меня в библиотеку заголовочного кода подсвечивая строку #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)) ===|

Vadim09 25-02-2015 11:11 2475614

Можно посмотреть весь проект?


Время: 21:22.

Время: 21:22.
© OSzone.net 2001-