Help using DPlot w/ gcc
Posted: Wed Aug 24, 2005 12:41 pm
I can compile and line the CTEST programs included with the dplotlib distribution using mingw under mingwstudio, but I keep getting the LoadLibrary for DPLOTLIB.DLL failed.
Am I missing something stupid. All the libraries seem to be found correctly, as if I get the paths wrong, the compiler lets me know
Am I missing something stupid. All the libraries seem to be found correctly, as if I get the paths wrong, the compiler lets me know
Code: Select all
#include <windows.h>
#include <stdio.h>
#include <math.h>
#include "dplot.h"
#define DPLOT_PLOT dPlot_Plot
// Step 4: the Window Procedure
int main(void)
{
DPLOT DPlot;
double tryme [500] ;
int i;
for(i=0;i<500;i++)
{
tryme[i]=sin((double)i/200.0);
}
#ifdef __GNUC__
HINSTANCE dll;
dll=LoadLibrary("Dplotlib.a");
//printf(dll);
if((dll=dPlot_Init()) == NULL)
{
printf("LoadLibrary for DPLOTLIB.DLL failed.\n");
exit(0);
}
#endif
return(0);
}