C:\Program Files\MinGWStudio\AICont\Tst1.c:134: undefined reference to `DPlot_AddData8@24'
collect2: ld returned 1 exit status
If I comment out that line, the original DPLOT call works
I include DPlot.h, x is double x[500]. I mess around with the curve argument (use 0,1, or 2) without resolution
Any advice?
Code: Select all
for(i=0; (x[i]=i)<=499; i++);
printf("%f\n",x[499]);
int NP=500;
memset(&DPlot,0,sizeof(DPlot));
DPlot.Version = DPLOT_DDE_VERSION;
DPlot.DataFormat = DATA_XYXY;
DPlot.MaxCurves = 1; // Must be >= number of curves we plot
DPlot.MaxPoints = 20000; // Anything >= NP will do
DPlot.NumCurves = 1;
DPlot.Scale = SCALE_LINEARX_LINEARY;
DPlot.LegendX = 0.05f;
DPlot.LegendY = 0.05f;
DPlot.NP[0] = NP;
//DPlot.NP[1] = NP;
DPlot.LineType[0] = LINESTYLE_SOLID;
DocNum = DPLOT_PLOT(&DPlot,x,x,"[ManualScale(0,-.50,1000,1000)][TickInterval(1,50,50)]"
"[Caption(\"DPLOTLIB XY Test\")]"
"[ClearEditFlag()]");
for(i=0;i<500;i++)
x[i]=i+500;
//printf("%d\n", DATA_XYYY);
DPlot_AddData8(DocNum,DATA_XYXY,500,0,x,x); //THIS IS THE LINE