Re: [Plplot-general] PLplot+wxWidgets+MinGW+Windows10

2019-10-17 Thread Ferrell, Stephen via Plplot-general
I just completed a PLPlot/wxwidgets build using VS 2017 and VCPKG without issue.  Total build time was less than 15 minutes. If you built VCPKG on your system, run the following command to integrate it into your system.  I built VCPKG on my desktop and ran it from there using a Visual Studio

Re: [Plplot-general] PLplot+wxWidgets+MinGW+Windows10

2019-10-17 Thread Ferrell, Stephen via Plplot-general
Have you checked this page yet?   sourceforge.net/p/plplot/wiki/Configure_PLplot_for_the_Visual_Studio_IDE/ | | | | PLplot Cross-platform, scientific graphics... | | | You may also want to give VCPKG a go.  It's a package manager that works much like a package manager under Linux. 

Re: [Plplot-general] PLplot+wxWidgets+MinGW+Windows10

2019-10-17 Thread David Bergman
Stephan, perhaps you can help then.  I have never had an easy time getting plplot to build and install with VS in my environment and right now my current build/install crashes when I close any app that uses plplot.  I do not know why.  But there is another reason and that is that my dell tower

Re: [Plplot-general] PLplot+wxWidgets+MinGW+Windows10

2019-10-17 Thread Ferrell, Stephen via Plplot-general
Is there a reason why you've moved from Visual Studio to MinGW and CodeBlocks?  I've built several releases of PLPlot for Windows in the past using Visual Studio and had no problems.  As Visual Studio is the most popular development environment for Windows, support for building PLPlot and its

Re: [Plplot-general] PLplot+wxWidgets+MinGW+Windows10

2019-10-17 Thread David Bergman
I have the patch but the file changes indicated in the header do not match lines the appear in the /mingw/include/stdlib.h. I'm guessing that I have a different distribution, the one that comes with code blocks, and the c/c++ headers are not the same (though hopefully do the same thing). I

Re: [Plplot-general] PLplot+wxWidgets+MinGW+Windows10

2019-10-17 Thread David Bergman
Vadim, Thank you.  I had installed using codeblocks-17.12mingw-nosetup.zip which comes with the MinGW compiler (circa 12/2017).  If I understand your comment correctly the bug will not be released until later, or is there an existing patch?  Rather than edit plplot source might it be better

Re: [Plplot-general] PLplot+wxWidgets+MinGW+Windows10

2019-10-17 Thread David Bergman
Tom, That file already has the following: // Headers needed for Rand #ifdef _WIN32 // This include must occur before any other include of stdlib.h due to // the #define _CRT_RAND_S #define _CRT_RAND_S #include #else #include #endif Clearly the lines are in there but dependent on _WIN32.  

Re: [Plplot-general] PLplot+wxWidgets+MinGW+Windows10

2019-10-17 Thread David Bergman
I'll give it a try and let you know what happens. On 10/17/2019 3:47 PM, Tom Schoonjans wrote: Hey David, The error is coming out of C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp, so you will need to patch that file. I guess this fix should also go into the PLplot git repo. Best,

Re: [Plplot-general] PLplot+wxWidgets+MinGW+Windows10

2019-10-17 Thread David Bergman
Tom, thanks for your input but I'm not even writing code yet. This is a build error and I'm using the out of the box make, cmake and other scripts so I wouldn't know what file to put those lines of code in.  Any thoughts? On 10/17/2019 2:45 PM, Tom Schoonjans wrote: Hi David, To use rand_s

Re: [Plplot-general] PLplot+wxWidgets+MinGW+Windows10

2019-10-17 Thread Tom Schoonjans via Plplot-general
Hey David, The error is coming out of C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp, so you will need to patch that file. I guess this fix should also go into the PLplot git repo. Best, Tom > On 17 Oct 2019, at 20:41, David Bergman wrote: > > Tom, thanks for your input but I'm not

Re: [Plplot-general] PLplot+wxWidgets+MinGW+Windows10

2019-10-17 Thread David Bergman via Plplot-general
Tom, thanks for your input but I'm not even writing code yet.  This is a build error and I'm using the out of the box make, cmake and other scripts so I wouldn't know what file to put those lines of code in.  Any thoughts? Sent from Yahoo Mail on Android On Thu, Oct 17, 2019 at 2:46 PM,

Re: [Plplot-general] PLplot+wxWidgets+MinGW+Windows10

2019-10-17 Thread Tom Schoonjans via Plplot-general
Hi David, To use rand_s you need to start your source file with: #define _CRT_RAND_S #include It is crucial that these lines precede all your other includes, because other headers may already have dragged in stdlib.h Best, Tom > On 17 Oct 2019, at 19:03, David Bergman wrote: > > All, >