Anonymous - 2002-12-29

I used vUpdate to obtain and install the Console Level GDI package (BGI clone for windows).

I am using Dev-C++ 4.9.7.1/gcc version 3.2 (mingw special 20020817-1).

I encountered a few problems, here are the solutions:

1) Get latest source (winbgim.h and winbgim.cpp). The version of winbgim.h supplied in the package does not include the 'colors' enumeration, which means that the sample template does not even compile! The source (plus other useful info) is at:
http://www.cs.colorado.edu/~main/bgi/README.html

2) In winbgi.cpp, remove the .h from <iostream.h>. The extension is depreciated in the C++ standard, and the file does not exist in this version of Dev-C++.

3) In winbgi.cpp, add "using namespace std" declaration. Namespaces are a fairly recent addition to GCC. The old library would not link because of this.

4) Create a static library project called libbgi with winbgim.cpp as the only source file and build it. Copy the resulting libbgi.a file to the Dev-C++ lib folder, (overwrite the old version). The new version mayl be much smaller, the original appears to have debug symbols linked in.