Имя пользователя:
Пароль:  
Помощь | Регистрация | Забыли пароль?  

Показать сообщение отдельно

Новый участник


Сообщения: 1
Благодарности: 0

Профиль | Отправить PM | Цитировать


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

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.

Отправлено: 07:07, 16-07-2011 | #5