Hi Alan,


> -----Original Message-----
> From: Alan W. Irwin [mailto:ir...@beluga.phys.uvic.ca]
> Sent: Tuesday, June 27, 2017 9:12 AM
>
> 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.
>

An inspection of the code did not bring up a glaring mistake, so I am puzzled 
as well. At the very least at the moment. The only thing I can imagine is that 
the stdlib.h header file is not actually included.

> 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).
>
Okay, that is clear enough. I will try this.

Regards,

Arjen

DISCLAIMER: This message is intended exclusively for the addressee(s) and may 
contain confidential and privileged information. If you are not the intended 
recipient please notify the sender immediately and destroy this message. 
Unauthorized use, disclosure or copying of this message is strictly prohibited. 
The foundation 'Stichting Deltares', which has its seat at Delft, The 
Netherlands, Commercial Registration Number 41146461, is not liable in any way 
whatsoever for consequences and/or damages resulting from the improper, 
incomplete and untimely dispatch, receipt and/or content of this e-mail.
------------------------------------------------------------------------------
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