Hi Arjen:

Commit 76f6a78 includes a simple fix for the "cannot convert" LPCTSTR
to LPCWSTR build issues you discovered that has been bugging us for qute
some time now and which I was recently able to verify on my
Wine/MinGW/MSYS platform.  So I think this fix is a big
step forward.

However, (see commit message for details) I ran into one other build
issue concerning the declaration of rand_s which is implemented in
drivers/wxwidgets_dev.cpp with the following two lines:

#define _CRT_RAND_S
#include <stdlib.h>

This declaration method is exactly what is suggested by
<https://msdn.microsoft.com/en-us/library/sxtz2fa8.aspx>, and appeared
to work fine for Phil during his pre-release testing of PLplot-5.12.0
on the MSVC platform, and I suspect (but need confirmation from you)
it also won't be a problem on that platform for this version of the
code.  But at least my version 4.7.2 of g++ on MinGW/MSYS is
complaining about that declaration so my guess (which needs
confirmation from you) is you will run into the same issue for modern
g++ on MinGW-w64/MSYS2 (either 32-bit or 64-bit).  In which case, I
hope you have the C++ expertise (which I don't have) to figure out
what change you have to make in the rand_s declaration to convince g++
to compile that code.

In sum, please run a MinGW-w64/MSYS2 (either 32-bit or 64-bit) test
and an MSVC test for this latest code base to insure my present fix
works for the "cannot convert" LPCTSTR to LPCWSTR issue works on those
platforms.  And if for either one you run into a problem with the above
declaration of rand_s, I hope you know how to fix it (since I don't).

Alan
__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state
implementation for stellar interiors (freeeos.sf.net); the Time
Ephemerides project (timeephem.sf.net); PLplot scientific plotting
software package (plplot.sf.net); the libLASi project
(unifont.org/lasi); the Loads of Linux Links project (loll.sf.net);
and the Linux Brochure Project (lbproject.sf.net).
__________________________

Linux-powered Science
__________________________

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Plplot-devel mailing list
Plplot-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-devel

Reply via email to