Click here to Skip to main content
15,849,615 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do I create a graph using koolplot library in code::blocks? I am running a console application using c++. Its simple code

#include "koolplot.h"

int main()
   Plotdata x(-3.0, 3.0), y = sin(x) - 0.5*x;
   plot(x, y);
   return 0;

but I get an error:
fatal error: graphics.h: No such file or directory

Please help
Updated 13-Aug-23 9:08am
Patrice T 28-Aug-15 14:00pm    
May be you should look at tutorials, there must be examples.

1 solution

i solved that by installing graphics header file and making some necessary changes]

but now i get several errors....

expected identifier before ‘[‘ token

any help??
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900