I have the following in my code:
#ifdef __GNUC__
HINSTANCE dll;
if((dll = dPlot_Init()) == NULL)
{
printf("LoadLibrary for DPLOTLIB.DLL failed.\n");
exit(0);
}
#endif
FreeLibrary(dll);
I'm getting the same error whether I link to dplotlib.dll or not.
Do I need to change this??
Search found 2 matches
- Mon Apr 07, 2008 11:32 am
- Forum: C, C++, C#
- Topic: undefined ref to AddData8
- Replies: 12
- Views: 45011
- Sun Apr 06, 2008 7:18 pm
- Forum: C, C++, C#
- Topic: undefined ref to AddData8
- Replies: 12
- Views: 45011
undefined ref to AddData8
Using MinGw, I keep getting the following link error
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 ...
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 ...