Libbgi A Download For Dev C%2b%2b

  1. Libbgi A Download For Dev C 2b 2b 1b
  2. Libbgi A Download For Dev C 2b 2b 4
  3. Libbgi A Download For Dev C 2b 2b 2
  4. Libbgi A Download For Dev C 2b 2b 1
  • 超任的游戏是用什么语言开发的?
  • 如何生成自己的lib文件并运用它?
  • 在Dev-C++中如何用DirectX
更多帖子
关注私信空间博客
等级
结帖率 100%
  • Embarcadero Dev-C is a new and improved fork (sponsored by Embarcadero) of Bloodshed Dev-C and Orwell Dev-C.It is a full-featured Integrated Development Environment (IDE) and code editor for the C/C programming language.
  • Download the files listed below. Graphics.h (download to C: Dev-Cpp include) libbgi.a(download to C: Dev-Cpp lib) Once you download the files. Now you have to place into the correct location in Dev-C installation folder. Try to locate include and lib folder under your dev-cpp installation.
  • First you download the necessary files here. After you unzip the downloaded will see a folder “VietSource.net – Graphics in Dev-C” in directory 5 file: You copy: – file libbgi.a in directory lib (usually C: Program FilesDev-CppMinGW32lib) – file winbgim.h and graphics.h in directory include (usually C: Program FilesDev-CppMinGW32include).
  • Step 5:Copy the libbgi.a file into lib folder and in D:Dev-CppMinGW64x8664-w64-mingw32lib folder. Step 6: Copy the ConsoleAppGraphics.template, ConsoleAppcppgraph.txt files and paste them inside the template folder of the devc installer location.
  • Winbgim for Dev C 1.0 is a Shareware software in the category Graphics Applications developed by charlytos'page. The latest version of Winbgim for Dev C 1.0 is currently unknown. It was initially added to our database on. Winbgim for Dev C 1.0 runs on the following operating systems: Windows.
为什么用winbgim.h时会出错
出错信息:
g++.exe -c main.cpp -o main.o -I'C:/Dev-CPP/include' -I'C:/Dev-CPP/include'
windres.exe -i 项目2_private.rc -I rc -o 项目2_private.res -O coff
g++.exe main.o 项目2_private.res -o '项目2.exe' -L'C:/Dev-CPP/lib' 'C:/Dev-CPP/lib/libbgi.a' -I'C:/Dev-CPP/include' -I'C:/Dev-CPP/include'
C:/Dev-CPP/lib/libbgi.a(winbgim.o.b): In function `pen_cache::select(int)':
winbgim.cpp:377: undefined reference to `SelectObject@8'
winbgim.cpp:380: undefined reference to `SelectObject@8'
winbgim.cpp:397: undefined reference to `ExtCreatePen@20'
winbgim.cpp:403: undefined reference to `CreatePen@12'
winbgim.cpp:404: undefined reference to `SelectObject@8'
winbgim.cpp:407: undefined reference to `SelectObject@8'
winbgim.cpp:415: undefined reference to `DeleteObject@4'
C:/Dev-CPP/lib/libbgi.a(winbgim.o.b): In function `font_cache::select(int, int, int, int)':
winbgim.cpp:471: undefined reference to `SelectObject@8'
winbgim.cpp:473: undefined reference to `SelectObject@8'
winbgim.cpp:481: undefined reference to `CreateFontA@56'
winbgim.cpp:482: undefined reference to `SelectObject@8'
winbgim.cpp:485: undefined reference to `SelectObject@8'
winbgim.cpp:493: undefined reference to `DeleteObject@4'
C:/Dev-CPP/lib/libbgi.a(winbgim.o.b): In function `setcolor':
winbgim.cpp:583: undefined reference to `SetTextColor@8'
winbgim.cpp:585: undefined reference to `SetTextColor@8'
winbgim.cpp:589: undefined reference to `SetTextColor@8'
winbgim.cpp:591: undefined reference to `SetTextColor@8'
C:/Dev-CPP/lib/libbgi.a(winbgim.o.b): In function `getx':
winbgim.cpp:618: undefined reference to `GetCurrentPositionEx@8'
C:/Dev-CPP/lib/libbgi.a(winbgim.o.b): In function `gety':
winbgim.cpp:626: undefined reference to `GetCurrentPositionEx@8'
C:/Dev-CPP/lib/libbgi.a(winbgim.o.b): In function `correctpalette(int)':
winbgim.cpp:685: undefined reference to `GetPixel@12'
winbgim.cpp:691: undefined reference to `GetPixel@12'
winbgim.cpp:701: undefined reference to `SetPaletteEntries@16'
winbgim.cpp:705: undefined reference to `RealizePalette@4'
winbgim.cpp:708: undefined reference to `SetPixel@16'
winbgim.cpp:710: undefined reference to `SetPixel@16'
C:/Dev-CPP/lib/libbgi.a(winbgim.o.b): In function `setpalette':
winbgim.cpp:739: undefined reference to `SetPaletteEntries@16'
winbgim.cpp:741: undefined reference to `RealizePalette@4'
winbgim.cpp:746: undefined reference to `SetBkColor@8'
winbgim.cpp:747: undefined reference to `SetBkColor@8'
winbgim.cpp:748: undefined reference to `DeleteObject@4'
winbgim.cpp:750: undefined reference to `CreateSolidBrush@4'
C:/Dev-CPP/lib/libbgi.a(winbgim.o.b): In function `setrgbpalette':
winbgim.cpp:775: undefined reference to `SetPaletteEntries@16'
winbgim.cpp:777: undefined reference to `RealizePalette@4'
winbgim.cpp:782: undefined reference to `SetBkColor@8'
winbgim.cpp:783: undefined reference to `SetBkColor@8'
winbgim.cpp:784: undefined reference to `DeleteObject@4'
winbgim.cpp:786: undefined reference to `CreateSolidBrush@4'
C:/Dev-CPP/lib/libbgi.a(winbgim.o.b): In function `setallpalette':
winbgim.cpp:812: undefined reference to `SetPaletteEntries@16'
winbgim.cpp:815: undefined reference to `RealizePalette@4'
winbgim.cpp:821: undefined reference to `SetBkColor@8'
winbgim.cpp:822: undefined reference to `SetBkColor@8'
winbgim.cpp:823: undefined reference to `DeleteObject@4'
winbgim.cpp:826: undefined reference to `CreateSolidBrush@4'
C:/Dev-CPP/lib/libbgi.a(winbgim.o.b): In function `setbkcolor':
winbgim.cpp:855: undefined reference to `SetBkColor@8'
winbgim.cpp:856: undefined reference to `SetBkColor@8'
winbgim.cpp:857: undefined reference to `DeleteObject@4'
winbgim.cpp:861: undefined reference to `CreateSolidBrush@4'
winbgim.cpp:862: undefined reference to `SetBkColor@8'
winbgim.cpp:863: undefined reference to `SetBkColor@8'
winbgim.cpp:864: undefined reference to `DeleteObject@4'
winbgim.cpp:866: undefined reference to `CreateSolidBrush@4'
C:/Dev-CPP/lib/libbgi.a(winbgim.o.b): In function `setfillstyle':
winbgim.cpp:883: undefined reference to `SelectObject@8'
winbgim.cpp:884: undefined reference to `SelectObject@8'
C:/Dev-CPP/lib/libbgi.a(winbgim.o.b): In function `setfillpattern':
winbgim.cpp:908: undefined reference to `CreateBitmap@20'
winbgim.cpp:909: undefined reference to `CreatePatternBrush@4'
winbgim.cpp:910: undefined reference to `DeleteObject@4'
winbgim.cpp:913: undefined reference to `DeleteObject@4'
winbgim.cpp:916: undefined reference to `SelectObject@8'
winbgim.cpp:917: undefined reference to `SelectObject@8'
C:/Dev-CPP/lib/libbgi.a(winbgim.o.b): In function `select_fill_color(void)':
winbgim.cpp:934: undefined reference to `SetTextColor@8'
winbgim.cpp:938: undefined reference to `SetTextColor@8'
winbgim.cpp:939: undefined reference to `SetTextColor@8'
winbgim.cpp:942: undefined reference to `SetTextColor@8'
C:/Dev-CPP/lib/libbgi.a(winbgim.o.b): In function `moveto':
winbgim.cpp:958: undefined reference to `MoveToEx@16'
winbgim.cpp:960: undefined reference to `MoveToEx@16'
C:/Dev-CPP/lib/libbgi.a(winbgim.o.b): In function `moverel':
winbgim.cpp:966: undefined reference to `GetCurrentPositionEx@8'
C:/Dev-CPP/lib/libbgi.a(winbgim.o.b): In function `text_output(int, int, char const *)':
winbgim.cpp:996: undefined reference to `SetTextColor@8'
winbgim.cpp:1000: undefined reference to `SetTextColor@8'
winbgim.cpp:1001: undefined reference to `SetTextColor@8'
winbgim.cpp:1005: undefined reference to `SetTextColor@8'
winbgim.cpp:1008: undefined reference to `TextOutA@20'
winbgim.cpp:1010: undefined reference to `TextOutA@20'
C:/Dev-CPP/lib/libbgi.a(winbgim.o.b): In function `textheight':
winbgim.cpp:1041: undefined reference to `GetTextExtentPoint32A@16'
C:/Dev-CPP/lib/libbgi.a(winbgim.o.b): In function `textwidth':
winbgim.cpp:1050: undefined reference to `GetTextExtentPoint32A@16'
C:/Dev-CPP/lib/libbgi.a(winbgim.o.b): In function `outtext':
winbgim.cpp:1065: undefined reference to `SetTextAlign@8'
winbgim.cpp:1068: undefined reference to `SetTextAlign@8'
C:/Dev-CPP/lib/libbgi.a(winbgim.o.b): In function `outtextxy':
winbgim.cpp:1083: undefined reference to `SetTextAlign@8'
winbgim.cpp:1086: undefined reference to `SetTextAlign@8'
C:/Dev-CPP/lib/libbgi.a(winbgim.o.b): In function `setviewport':
winbgim.cpp:1100: undefined reference to `DeleteObject@4'
winbgim.cpp:1101: undefined reference to `CreateRectRgn@16'
winbgim.cpp:1102: undefined reference to `SelectClipRgn@8'
...
查看全部楼层引用举报楼主收起
You may be wondering how to add graphics.h in dev C++. Dev C++ does not support BGI Graphics we have to include graphics library manually. Here are few steps you must follow before using graphics.h header file. .

Libbgi A Download For Dev C 2b 2b 1b


Download following files to the directories mentioned:

Knights of the old republic pc download. DEV-C 5.11 (External server) Popular Downloads. Macromedia Flash 8 8.0 Macromedia Flash 8 Professional. /unibeast-installer-with-sierra-dmg.html. Tally.ERP 9 3.7 Tally is a.


graphics.h Directory:> C:Dev-Cppinclude
Devlibbgi.a Directory:> download to C:Dev-Cpplib)
Creating Project:
  • STEP 1: Open DEV C++ Compiler
  • STEP 2: Creating New Project
i. Go to File>New>Project as shown in following figure:
ii. Create New Project 'DialogBox' will appear select 'empty project'
and name your project in the space provided. Select Language
C or C++ according to your need. Press Ok and select the
location where you want to save.

  • STEP 4: Set linker parameters
Navigate to 'Project' menu and choose 'Project Options'. A dialogbox
will appear than select 'Parameters' option and type following in
'Linker' field.
-lbgi

Libbgi A Download For Dev C 2b 2b 4

-lgdi32
-lcomdlg32
-luuid
-loleaut32

Libbgi A Download For Dev C 2b 2b 2

-lole32

Press OK, you are now able to use graphics.h functions in your code.

Libbgi A Download For Dev C 2b 2b 1

  • STEP 5: Testing sample Program
In new versions of dev c++ compiler automatically adds one source file to
project. If there is no any existing source file simply add new file By
chossing new file option from file menu. Type the following code and
save the file. I saved file as 'main.cpp' its your chooice whatever you
name it.

  • STEP 6: Compiling and Runing the program
If you have followed all the steps carefully after compiling and runing the
program your output should be somthing like this:

  • STEP 7: Find more functions
Follow these links for more functions of graphics.h
1. http://www.programmingsimplified.com/c/graphics.h
2. http://www.cs.colorado.edu/~main/bgi/doc/initgraph.html
3. http://www.cs.colorado.edu/~main/bgi/doc/
You can comment here if you have any trouble.