From: Arjen M. <arj...@wl...> - 2004-09-03 12:28:56
|
Arjen Markus wrote: > > Arjen Markus wrote: > > > > > To check that plvect() and plsvect() are indeed nicely useable, I tried > > to > > compile example x22c. This uses however the constant M_PI (not defined > > apparently under Windows - with MS Visual C/C++ 6.0 anyway) and, > > worse, it uses "const int" to define the array sizes. This is not > > supported either! > > > > I have temporarily fixed this (and a few omissions in the Windows > > version of > > plplot.h - in CVS shortly), but now I get errors about function pointers > > with different > > attributes (this concerns pltr2). I am trying to make it work properly > > ... > > More later > > > > I have just ran into a problem that I need to solve properly but which > requires some careful thinking: the functions plAlloc2dGrid and > plFree2dGrid > are posing problems - they should ideally be named just as most other > functions (i.e. some uncuth magic concerning the prefix c_), but this is > in conflict with their actual definition. > > Oh, I know I am not expressing myself very clearly, but the DLL on > Windows > requires the proper attributes for all public functions, which is done > a.o. > via the c_ stuff). > > In short: these two functions must behave as public functions, therefore > they should have names like c_plAlloc.... but that requires a gratuitous > change to pdfutils.c, unless I work out the magic incantation that ... > -- argh, I need a drink! > > No time now, grrrrr > Perhaps I should have added: this is for the DLL version only! The static version compiles and links and the examples work fine Regards, Arjen |