Dear all,
I downloaded and installed DISLIN for Win 64 bit with MS Visual C++ 8.0 compiler (from here) and then restart my Code::Blocks. After that I started a new empty file and tried to follow (actually was "copy and paste") an example code. When I built my code, my Code::Blocks said
C:\Documents and Settings\dcl\Desktop\cprogramming\plot1.c|3|fatal error C1083: Cannot open include file: 'dislin.h': No such file or directory|
Do I need to set something in order from my Code::Blocks to recognize there is a new library??
Thanks
Code:#include <stdio.h> #include <math.h> #include "dislin.h" main() { int n = 100, i, ic; double fpi = 3.1415926/180., step, x; float xray[100], y1ray[100], y2ray[100]; step = 360. / (n-1); for (i = 0; i < n; i++) { xray[i] = i * step; x = xray[i] * fpi; y1ray[i] = sin(x); y2ray[i] = cos(x); } disini(); pagera(); complx(); axspos(450,1800); axslen(2200,1200); name("X-axis","x"); name("Y-axis","y"); labdig(-1,"x"); ticks(9,"x"); ticks(10,"y"); titlin("Demonstration of CURVE",1); titlin("SIN(X), COS(X)",3); ic=intrgb(0.95,0.95,0.95); axsbgd(ic); graf(0.,360.,0.,90.,-1.,1.,-1.,0.5); setrgb(0.7,0.7,0.7); grid(1,1); color("fore"); height(50); title(); color("red"); curve(xray,y1ray,n); color("green"); curve(xray,y2ray,n); disfin(); }



LinkBack URL
About LinkBacks


