HCP C++
Turtle Graphics Setup
Mr. Monroe’s Turtle Graphics is a C++ class named “turtle” that provides “turtle graphics” for a Dev-C++ (version 4.9.9.0 or 4.9.9.1) console application.The turtle class uses the Borland Graphical Interface.

You must install the BGI Graphics package first before you can use Turtle Graphics.

To install the Turtle Graphics class, download turtlegraphics.zip, unzip it, and place its files as follows:
  1. libturtle.a                            (place in C:\Dev-Cpp\lib)
  2. turtle.h                               (place in C:\Dev-Cpp\include)
  3. ConsoleAppTurtleGraphics.template      (place in C:\Dev-Cpp\Templates)
  4. ConsoleApp_cpp_turtle.txt              (place in C:\Dev-Cpp\Templates)
Installing the last 2 files will provide you with a template that starts a console application that is automatically linked to the first two files and the other libraries needed for graphics.

If you choose not to install and/or use the template, you can still link to the turtle class library manually by

  1. Including "turtle.h" in your program.
  2. Adding these linker options to your project:
    -lturtle -lbgi -lgdi32 -luser32
    (click Project | Project Options | Parameters tab, type under "Linker")


Documentation and introductory lessons are also provided here and here.