Alan W. Irwin wrote: > > Here is what I suggest you and Werner do to follow up on this. You have > already indicated earlier in this thread you were not quite sure about > what > circumstances required use of __declspec(dllimport). So I suggest you > look > very carefully at all traditional and non-traditional documentation > accessible to you to see under exactly what circumstances > __declspec(dllimport) should be used for undefined symbols in a library. > Note especially that a very good non-traditional source of > documentation for Windows development is the CMake mailing list. Note > also that questions > about __declspec(dllimport) have been asked and answered there before > so you > may want to do a google search of the CMML archives before you ask your > questions on that mailing list. > > Once you know the exact circumstances where it is necessary to specify > __declspec(dllimport), then you will be in a good position to figure > out how > to support that requirement using a combination of CMake logic and > #defines > in our various *dll.h files. > > Good luck in getting this all sorted out so that the Fortran cases and > the > C++ case build and give good ctest results for bare Windows and MinGW. > Hi Alan,
the best information I have found (been referred to) sofar is: http://msdn.microsoft.com/en-us/library/aa271769(VS.60).aspx It seems that using dllimport is a bit more efficient (number of instructions and size of the executable) when calling the DLL function from a program or another DLL. It is not to be used if you use the function in the same DLL. How this translates to the PLplot libraries, is something I still need to sort out. Regards, Arjen ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Plplot-devel mailing list Plplot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/plplot-devel