From: David B. <stu...@gm...> - 2019-10-17 18:04:01
|
All, I am in the process of trying to set up wxWidgets and plplot for development using code::blocks with mingw on a Windows 10 machine. I previously had a configuration working on a Windows 8 machine with VS 2017 but that machine is deceased. wxWidgets installed fairly easily with no issues reported and everything looks good (though I have not run any test examples yet). The PLplot build ran and connected to wxWidgets (found it and finished reporting it as being ON). Running ming32-make at the command prompt I eventually get a failure at 79% with the following error message (cut and pasted at end of message). I am using wxWidgets-3.1.2 and PLplot-5.15.0. I followed the commands for installing using mingw32-make that can be found on the wiki for each product. I have reached out to the plplot group but I'm also asking wxwidgets to look at the output since the error message mentions files included from the wxwidgets include dir. So it is not clear, to me, if the error is related solely to plplot or also to widgets. Before building plplot I defined WXWIN=<path to wxwidgets folder> and included the dll dir, <>\lib\gcc_dll, in the PATH. My assumption is that I have misunderstood something but I cannot figure it out. My new build/install in a new Windows 8 machine with VS 2017 seems to work but apps crash upon closing and that has not been easy to track down either. Thank you in advance for your help. David [ 79%] Building CXX object drivers/CMakeFiles/wxwidgets.dir/wxwidgets_dev.cpp.obj C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp: In constructor 'Rand::Rand()': C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:647:25: error: 'rand_s' was not declared in this scope rand_s( &m_seed ); ^ C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp: In member function 'void Font::createFont()': C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:736:101: warning: 'wxFont::wxFont(int, int, int, int, bool, const wxString&, wxFontEncoding)' is deprecated: use wxFONT{FAMILY,STYLE,WEIGHT}_XXX constants ie: wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD [-Wdeprecated-declarations] m_font = wxFont( pt, family, style, weight, m_underlined, wxEmptyString, wxFONTENCODING_DEFAULT ); ^ In file included from C:/temp/src/wxWidgets-3.1.2/include/wx/font.h:652:0, from C:/temp/src/wxWidgets-3.1.2/include/wx/window.h:23, from C:/temp/src/wxWidgets-3.1.2/include/wx/wx.h:38, from C:\temp\src\plplot-5.15.0\drivers\wxwidgets.h:32, from C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:44: C:/temp/src/wxWidgets-3.1.2/include/wx/msw/font.h:124:5: note: declared here wxFont(int size, ^ C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp: In member function 'virtual void wxPLDevice::FillPolygon(PLStream*)': C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:1010:58: warning: 'wxPen::wxPen(const wxColour&, int, int)' is deprecated: use wxPENSTYLE_XXX constants [-Wdeprecated-declarations] wxPen edgePen( m_brush.GetColour(), m_scale, wxSOLID ); ^ In file included from C:/temp/src/wxWidgets-3.1.2/include/wx/pen.h:84:0, from C:/temp/src/wxWidgets-3.1.2/include/wx/dc.h:25, from C:/temp/src/wxWidgets-3.1.2/include/wx/wx.h:50, from C:\temp\src\plplot-5.15.0\drivers\wxwidgets.h:32, from C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:44: C:/temp/src/wxWidgets-3.1.2/include/wx/msw/pen.h:59:5: note: declared here wxPen(const wxColour& col, int width, int style); ^ C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp: In member function 'virtual void wxPLDevice::SetWidth(PLStream*)': C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:1046:53: warning: 'wxPen::wxPen(const wxColour&, int, int)' is deprecated: use wxPENSTYLE_XXX constants [-Wdeprecated-declarations] pls->curcolor.a * 255 ), width, wxSOLID ); ^ In file included from C:/temp/src/wxWidgets-3.1.2/include/wx/pen.h:84:0, from C:/temp/src/wxWidgets-3.1.2/include/wx/dc.h:25, from C:/temp/src/wxWidgets-3.1.2/include/wx/wx.h:50, from C:\temp\src\plplot-5.15.0\drivers\wxwidgets.h:32, from C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:44: C:/temp/src/wxWidgets-3.1.2/include/wx/msw/pen.h:59:5: note: declared here wxPen(const wxColour& col, int width, int style); ^ C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp: In member function 'virtual void wxPLDevice::SetColor(PLStream*)': C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:1059:53: warning: 'wxPen::wxPen(const wxColour&, int, int)' is deprecated: use wxPENSTYLE_XXX constants [-Wdeprecated-declarations] pls->curcolor.a * 255 ), width, wxSOLID ); ^ In file included from C:/temp/src/wxWidgets-3.1.2/include/wx/pen.h:84:0, from C:/temp/src/wxWidgets-3.1.2/include/wx/dc.h:25, from C:/temp/src/wxWidgets-3.1.2/include/wx/wx.h:50, from C:\temp\src\plplot-5.15.0\drivers\wxwidgets.h:32, from C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:44: C:/temp/src/wxWidgets-3.1.2/include/wx/msw/pen.h:59:5: note: declared here wxPen(const wxColour& col, int width, int style); ^ drivers\CMakeFiles\wxwidgets.dir\build.make:90: recipe for target 'drivers/CMakeFiles/wxwidgets.dir/wxwidgets_dev.cpp.obj' failed mingw32-make[2]: *** [drivers/CMakeFiles/wxwidgets.dir/wxwidgets_dev.cpp.obj] Error 1 CMakeFiles\Makefile2:1410: recipe for target 'drivers/CMakeFiles/wxwidgets.dir/all' failed mingw32-make[1]: *** [drivers/CMakeFiles/wxwidgets.dir/all] Error 2 Makefile:150: recipe for target 'all' failed mingw32-make: *** [all] Error 2 C:\temp\src\plplot-5.15.0\buildmingw> --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus |
From: Tom S. <tom...@me...> - 2019-10-17 18:46:07
|
Hi David, To use rand_s you need to start your source file with: #define _CRT_RAND_S #include <stdlib.h> 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 <stu...@gm...> wrote: > > All, > > I am in the process of trying to set up wxWidgets and plplot for development using code::blocks with mingw on a Windows 10 machine. > I previously had a configuration working on a Windows 8 machine with VS 2017 but that machine is deceased. > wxWidgets installed fairly easily with no issues reported and everything looks good (though I have not run any test examples yet). > > The PLplot build ran and connected to wxWidgets (found it and finished reporting it as being ON). Running ming32-make at the command prompt I eventually get a failure at 79% with the following error message (cut and pasted at end of message). I am using wxWidgets-3.1.2 and PLplot-5.15.0. I followed the commands for installing using mingw32-make that can be found on the wiki for each product. > > I have reached out to the plplot group but I'm also asking wxwidgets to look at the output since the error message mentions files included from the wxwidgets include dir. So it is not clear, to me, if the error is related solely to plplot or also to widgets. Before building plplot I defined WXWIN=<path to wxwidgets folder> and included the dll dir, <>\lib\gcc_dll, in the PATH. My assumption is that I have misunderstood something but I cannot figure it out. My new build/install in a new Windows 8 machine with VS 2017 seems to work but apps crash upon closing and that has not been easy to track down either. Thank you in advance for your help. > > David > > > [ 79%] Building CXX object drivers/CMakeFiles/wxwidgets.dir/wxwidgets_dev.cpp.obj > C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp: In constructor 'Rand::Rand()': > C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:647:25: error: 'rand_s' was not declared in this scope > rand_s( &m_seed ); > ^ > C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp: In member function 'void Font::createFont()': > C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:736:101: warning: 'wxFont::wxFont(int, int, int, int, bool, const wxString&, wxFontEncoding)' is deprecated: use wxFONT{FAMILY,STYLE,WEIGHT}_XXX constants ie: wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD [-Wdeprecated-declarations] > m_font = wxFont( pt, family, style, weight, m_underlined, wxEmptyString, wxFONTENCODING_DEFAULT ); > ^ > In file included from C:/temp/src/wxWidgets-3.1.2/include/wx/font.h:652:0, > from C:/temp/src/wxWidgets-3.1.2/include/wx/window.h:23, > from C:/temp/src/wxWidgets-3.1.2/include/wx/wx.h:38, > from C:\temp\src\plplot-5.15.0\drivers\wxwidgets.h:32, > from C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:44: > C:/temp/src/wxWidgets-3.1.2/include/wx/msw/font.h:124:5: note: declared here > wxFont(int size, > ^ > C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp: In member function 'virtual void wxPLDevice::FillPolygon(PLStream*)': > C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:1010:58: warning: 'wxPen::wxPen(const wxColour&, int, int)' is deprecated: use wxPENSTYLE_XXX constants [-Wdeprecated-declarations] > wxPen edgePen( m_brush.GetColour(), m_scale, wxSOLID ); > ^ > In file included from C:/temp/src/wxWidgets-3.1.2/include/wx/pen.h:84:0, > from C:/temp/src/wxWidgets-3.1.2/include/wx/dc.h:25, > from C:/temp/src/wxWidgets-3.1.2/include/wx/wx.h:50, > from C:\temp\src\plplot-5.15.0\drivers\wxwidgets.h:32, > from C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:44: > C:/temp/src/wxWidgets-3.1.2/include/wx/msw/pen.h:59:5: note: declared here > wxPen(const wxColour& col, int width, int style); > ^ > C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp: In member function 'virtual void wxPLDevice::SetWidth(PLStream*)': > C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:1046:53: warning: 'wxPen::wxPen(const wxColour&, int, int)' is deprecated: use wxPENSTYLE_XXX constants [-Wdeprecated-declarations] > pls->curcolor.a * 255 ), width, wxSOLID ); > ^ > In file included from C:/temp/src/wxWidgets-3.1.2/include/wx/pen.h:84:0, > from C:/temp/src/wxWidgets-3.1.2/include/wx/dc.h:25, > from C:/temp/src/wxWidgets-3.1.2/include/wx/wx.h:50, > from C:\temp\src\plplot-5.15.0\drivers\wxwidgets.h:32, > from C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:44: > C:/temp/src/wxWidgets-3.1.2/include/wx/msw/pen.h:59:5: note: declared here > wxPen(const wxColour& col, int width, int style); > ^ > C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp: In member function 'virtual void wxPLDevice::SetColor(PLStream*)': > C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:1059:53: warning: 'wxPen::wxPen(const wxColour&, int, int)' is deprecated: use wxPENSTYLE_XXX constants [-Wdeprecated-declarations] > pls->curcolor.a * 255 ), width, wxSOLID ); > ^ > In file included from C:/temp/src/wxWidgets-3.1.2/include/wx/pen.h:84:0, > from C:/temp/src/wxWidgets-3.1.2/include/wx/dc.h:25, > from C:/temp/src/wxWidgets-3.1.2/include/wx/wx.h:50, > from C:\temp\src\plplot-5.15.0\drivers\wxwidgets.h:32, > from C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:44: > C:/temp/src/wxWidgets-3.1.2/include/wx/msw/pen.h:59:5: note: declared here > wxPen(const wxColour& col, int width, int style); > ^ > drivers\CMakeFiles\wxwidgets.dir\build.make:90: recipe for target 'drivers/CMakeFiles/wxwidgets.dir/wxwidgets_dev.cpp.obj' failed > mingw32-make[2]: *** [drivers/CMakeFiles/wxwidgets.dir/wxwidgets_dev.cpp.obj] Error 1 > CMakeFiles\Makefile2:1410: recipe for target 'drivers/CMakeFiles/wxwidgets.dir/all' failed > mingw32-make[1]: *** [drivers/CMakeFiles/wxwidgets.dir/all] Error 2 > Makefile:150: recipe for target 'all' failed > mingw32-make: *** [all] Error 2 > > C:\temp\src\plplot-5.15.0\buildmingw> > > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > > > > _______________________________________________ > Plplot-general mailing list > Plp...@li... > https://lists.sourceforge.net/lists/listinfo/plplot-general |
From: David B. <stu...@gm...> - 2019-10-17 19:57:11
|
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 you need to start your source file with: > > #define _CRT_RAND_S > #include <stdlib.h> > > > 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 <stu...@gm... >> <mailto:stu...@gm...>> wrote: >> >> All, >> >> I am in the process of trying to set up wxWidgets and plplot for >> development using code::blocks with mingw on a Windows 10 machine. >> I previously had a configuration working on a Windows 8 machine with >> VS 2017 but that machine is deceased. >> wxWidgets installed fairly easily with no issues reported and >> everything looks good (though I have not run any test examples yet). >> >> The PLplot build ran and connected to wxWidgets (found it and >> finished reporting it as being ON). Running ming32-make at the >> command prompt I eventually get a failure at 79% with the following >> error message (cut and pasted at end of message). I am using >> wxWidgets-3.1.2 and PLplot-5.15.0. I followed the commands for >> installing using mingw32-make that can be found on the wiki for each >> product. >> >> I have reached out to the plplot group but I'm also asking wxwidgets >> to look at the output since the error message mentions files included >> from the wxwidgets include dir. So it is not clear, to me, if the >> error is related solely to plplot or also to widgets. Before >> building plplot I defined WXWIN=<path to wxwidgets folder> and >> included the dll dir, <>\lib\gcc_dll, in the PATH. My assumption is >> that I have misunderstood something but I cannot figure it out. My >> new build/install in a new Windows 8 machine with VS 2017 seems to >> work but apps crash upon closing and that has not been easy to track >> down either. Thank you in advance for your help. >> >> David >> >> >> [ 79%] Building CXX object >> drivers/CMakeFiles/wxwidgets.dir/wxwidgets_dev.cpp.obj >> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp: In constructor >> 'Rand::Rand()': >> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:647:25: error: >> 'rand_s' was not declared in this scope >> rand_s( &m_seed ); >> ^ >> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp: In member >> function 'void Font::createFont()': >> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:736:101: warning: >> 'wxFont::wxFont(int, int, int, int, bool, const wxString&, >> wxFontEncoding)' is deprecated: use wxFONT{FAMILY,STYLE,WEIGHT}_XXX >> constants ie: wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, >> wxFONTWEIGHT_BOLD [-Wdeprecated-declarations] >> m_font = wxFont( pt, family, style, weight, m_underlined, >> wxEmptyString, wxFONTENCODING_DEFAULT ); >> ^ >> In file included from >> C:/temp/src/wxWidgets-3.1.2/include/wx/font.h:652:0, >> from C:/temp/src/wxWidgets-3.1.2/include/wx/window.h:23, >> from C:/temp/src/wxWidgets-3.1.2/include/wx/wx.h:38, >> from C:\temp\src\plplot-5.15.0\drivers\wxwidgets.h:32, >> from >> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:44: >> C:/temp/src/wxWidgets-3.1.2/include/wx/msw/font.h:124:5: note: >> declared here >> wxFont(int size, >> ^ >> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp: In member >> function 'virtual void wxPLDevice::FillPolygon(PLStream*)': >> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:1010:58: warning: >> 'wxPen::wxPen(const wxColour&, int, int)' is deprecated: use >> wxPENSTYLE_XXX constants [-Wdeprecated-declarations] >> wxPen edgePen( m_brush.GetColour(), m_scale, wxSOLID ); >> ^ >> In file included from C:/temp/src/wxWidgets-3.1.2/include/wx/pen.h:84:0, >> from C:/temp/src/wxWidgets-3.1.2/include/wx/dc.h:25, >> from C:/temp/src/wxWidgets-3.1.2/include/wx/wx.h:50, >> from C:\temp\src\plplot-5.15.0\drivers\wxwidgets.h:32, >> from >> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:44: >> C:/temp/src/wxWidgets-3.1.2/include/wx/msw/pen.h:59:5: note: declared >> here >> wxPen(const wxColour& col, int width, int style); >> ^ >> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp: In member >> function 'virtual void wxPLDevice::SetWidth(PLStream*)': >> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:1046:53: warning: >> 'wxPen::wxPen(const wxColour&, int, int)' is deprecated: use >> wxPENSTYLE_XXX constants [-Wdeprecated-declarations] >> pls->curcolor.a * 255 ), width, wxSOLID ); >> ^ >> In file included from C:/temp/src/wxWidgets-3.1.2/include/wx/pen.h:84:0, >> from C:/temp/src/wxWidgets-3.1.2/include/wx/dc.h:25, >> from C:/temp/src/wxWidgets-3.1.2/include/wx/wx.h:50, >> from C:\temp\src\plplot-5.15.0\drivers\wxwidgets.h:32, >> from >> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:44: >> C:/temp/src/wxWidgets-3.1.2/include/wx/msw/pen.h:59:5: note: declared >> here >> wxPen(const wxColour& col, int width, int style); >> ^ >> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp: In member >> function 'virtual void wxPLDevice::SetColor(PLStream*)': >> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:1059:53: warning: >> 'wxPen::wxPen(const wxColour&, int, int)' is deprecated: use >> wxPENSTYLE_XXX constants [-Wdeprecated-declarations] >> pls->curcolor.a * 255 ), width, wxSOLID ); >> ^ >> In file included from C:/temp/src/wxWidgets-3.1.2/include/wx/pen.h:84:0, >> from C:/temp/src/wxWidgets-3.1.2/include/wx/dc.h:25, >> from C:/temp/src/wxWidgets-3.1.2/include/wx/wx.h:50, >> from C:\temp\src\plplot-5.15.0\drivers\wxwidgets.h:32, >> from >> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:44: >> C:/temp/src/wxWidgets-3.1.2/include/wx/msw/pen.h:59:5: note: declared >> here >> wxPen(const wxColour& col, int width, int style); >> ^ >> drivers\CMakeFiles\wxwidgets.dir\build.make:90: recipe for target >> 'drivers/CMakeFiles/wxwidgets.dir/wxwidgets_dev.cpp.obj' failed >> mingw32-make[2]: *** >> [drivers/CMakeFiles/wxwidgets.dir/wxwidgets_dev.cpp.obj] Error 1 >> CMakeFiles\Makefile2:1410: recipe for target >> 'drivers/CMakeFiles/wxwidgets.dir/all' failed >> mingw32-make[1]: *** [drivers/CMakeFiles/wxwidgets.dir/all] Error 2 >> Makefile:150: recipe for target 'all' failed >> mingw32-make: *** [all] Error 2 >> >> C:\temp\src\plplot-5.15.0\buildmingw> >> >> >> >> --- >> This email has been checked for viruses by Avast antivirus software. >> https://www.avast.com/antivirus >> >> >> >> _______________________________________________ >> Plplot-general mailing list >> Plp...@li... >> https://lists.sourceforge.net/lists/listinfo/plplot-general > -- David Bergman David R Bergman Music LLC "Have Guitar Will Travel" Morristown NJ 551-655-4720 stu...@gm... www.davidrobertbergmanmusic.com |
From: David B. <dav...@ya...> - 2019-10-17 19:41:28
|
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, Tom Schoonjans via Plplot-general<plp...@li...> wrote: _______________________________________________ Plplot-general mailing list Plp...@li... https://lists.sourceforge.net/lists/listinfo/plplot-general |
From: Tom S. <tom...@me...> - 2019-10-17 19:47:54
|
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 <dav...@ya...> wrote: > > 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 <https://go.onelink.me/107872968?pid=InProduct&c=Global_Internal_YGrowth_AndroidEmailSig__AndroidUsers&af_wl=ym&af_sub1=Internal&af_sub2=Global_YGrowth&af_sub3=EmailSignature> > On Thu, Oct 17, 2019 at 2:46 PM, Tom Schoonjans via Plplot-general > <plp...@li...> wrote: > _______________________________________________ > Plplot-general mailing list > Plp...@li... <mailto:Plp...@li...> > https://lists.sourceforge.net/lists/listinfo/plplot-general <https://lists.sourceforge.net/lists/listinfo/plplot-general> > <Untitled.txt><Untitled.txt> |
From: David B. <stu...@gm...> - 2019-10-17 19:57:52
|
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, > > Tom > >> On 17 Oct 2019, at 20:41, David Bergman <dav...@ya... >> <mailto:dav...@ya...>> wrote: >> >> 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 >> <https://go.onelink.me/107872968?pid=InProduct&c=Global_Internal_YGrowth_AndroidEmailSig__AndroidUsers&af_wl=ym&af_sub1=Internal&af_sub2=Global_YGrowth&af_sub3=EmailSignature> >> >> On Thu, Oct 17, 2019 at 2:46 PM, Tom Schoonjans via Plplot-general >> <plp...@li... >> <mailto:plp...@li...>> wrote: >> _______________________________________________ >> Plplot-general mailing list >> Plp...@li... >> <mailto:Plp...@li...> >> https://lists.sourceforge.net/lists/listinfo/plplot-general >> >> <Untitled.txt><Untitled.txt> > -- David Bergman David R Bergman Music LLC "Have Guitar Will Travel" Morristown NJ 551-655-4720 stu...@gm... www.davidrobertbergmanmusic.com --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus |
From: David B. <stu...@gm...> - 2019-10-17 20:16:21
|
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 <stdlib.h> #else #include <fstream> #endif Clearly the lines are in there but dependent on _WIN32. I'm trying to build on a Dell with Windows 10 (64 bit machine and OS) but using MinGW compiler. Should I comment out the #ifdef or could that cause other issues? 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, > > Tom > >> On 17 Oct 2019, at 20:41, David Bergman <dav...@ya... >> <mailto:dav...@ya...>> wrote: >> >> 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 >> <https://go.onelink.me/107872968?pid=InProduct&c=Global_Internal_YGrowth_AndroidEmailSig__AndroidUsers&af_wl=ym&af_sub1=Internal&af_sub2=Global_YGrowth&af_sub3=EmailSignature> >> >> On Thu, Oct 17, 2019 at 2:46 PM, Tom Schoonjans via Plplot-general >> <plp...@li... >> <mailto:plp...@li...>> wrote: >> _______________________________________________ >> Plplot-general mailing list >> Plp...@li... >> <mailto:Plp...@li...> >> https://lists.sourceforge.net/lists/listinfo/plplot-general >> >> <Untitled.txt><Untitled.txt> > -- David Bergman David R Bergman Music LLC "Have Guitar Will Travel" Morristown NJ 551-655-4720 stu...@gm... www.davidrobertbergmanmusic.com --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus |
From: David B. <stu...@gm...> - 2019-10-17 21:06:31
|
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 do grab the most recent compiler or is that not stable? Doing the rand fix just exposed another bug related to seed (see below). Is there a list of all possible changes needed? Or is it safe to say any related to the _WIN32 condition, or rand() generators? David [ 79%] Building CXX object drivers/CMakeFiles/wxwidgets.dir/wxwidgets_dev.cpp.obj C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp: In constructor 'Rand::Rand()': C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:647:25: error: 'rand_s' was not declared in this scope rand_s( &m_seed ); ^ On 10/17/2019 4:18 PM, Vadim Zeitlin wrote: > On Thu, 17 Oct 2019 14:03:20 -0400 David Bergman wrote: > > DB> [ 79%] Building CXX object > DB> drivers/CMakeFiles/wxwidgets.dir/wxwidgets_dev.cpp.obj > DB> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp: In constructor > DB> 'Rand::Rand()': > DB> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:647:25: error: > DB> 'rand_s' was not declared in this scope > DB> rand_s( &m_seed ); > DB> ^ > > This error doesn't have anything to do with wxWidgets and is due to > missing rand_s() declaration in "classic" MinGW headers. It so happens that > I ran into the same issue relatively recently (although in completely > different circumstances) and this eventually led to it being fixed in > MinGW, see https://osdn.net/projects/mingw/ticket/39658, so it won't occur > any more with the next MinGW release (5.3). For now you could use the > already proposed workaround. > > DB> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp: In member function > DB> 'void Font::createFont()': > DB> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:736:101: warning: > DB> 'wxFont::wxFont(int, int, int, int, bool, const wxString&, > DB> wxFontEncoding)' is deprecated: use wxFONT{FAMILY,STYLE,WEIGHT}_XXX > DB> constants ie: wxFONTFAMILY_SWISS, wxFONTSTYLE_NORMAL, wxFONTWEIGHT_BOLD > DB> [-Wdeprecated-declarations] > > This and other warnings are not fatal and just notify you, or rather > plplot developers, that there are better and safer overloads available in > wx 3.x that should be used instead of the old ones. If plplot developers > have any questions about this, please don't hesitate to ask us about it > here, i.e. on wx-users. > > Regards, > VZ > -- David Bergman David R Bergman Music LLC "Have Guitar Will Travel" Morristown NJ 551-655-4720 stu...@gm... www.davidrobertbergmanmusic.com --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus |
From: David B. <stu...@gm...> - 2019-10-17 22:09:12
|
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 agree that this is clearly not a widgets issue but I'm still including that group since you were able to help so far. I am very reluctant to edit the stdlib.h file I have if the line numbers and sample info do not match at all. Can you confirm which version of MinGW you applied the patch to? Perhaps I will just get that one, or another compiler supported by Code Blocks and start over. David On 10/17/2019 5:17 PM, Vadim Zeitlin wrote: > On Thu, 17 Oct 2019 17:06:09 -0400 David Bergman wrote: > > DB> Thank you. I had installed using codeblocks-17.12mingw-nosetup.zip > DB> which comes with the MinGW compiler (circa 12/2017). If I understand > DB> your comment correctly the bug will not be released until later, or is > DB> there an existing patch? > > Yes, it's linked from the ticket URL I gave in the previous reply: > > https://dotsrc.dl.osdn.net/osdn/ticket/g/m/mi/mingw/39658/5565/declare-rand_s.patch > > DB> Rather than edit plplot source might it be better do grab the most > DB> recent compiler or is that not stable? > > I'm not really sure, but adding a declaration to stdlib.h (i.e. applying > the patch above) should be the simplest. OTOH you could also just copy > rand_s declaration in the file which needs it in plplot and avoid modifying > MinGW headers at all. But this is really not wx-related at all any more... > > DB> Doing the rand fix just exposed another bug related to seed (see > DB> below). Is there a list of all possible changes needed? Or is it safe > DB> to say any related to the _WIN32 condition, or rand() generators? > DB> > DB> David > DB> > DB> [ 79%] Building CXX object > DB> drivers/CMakeFiles/wxwidgets.dir/wxwidgets_dev.cpp.obj > DB> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp: In constructor > DB> 'Rand::Rand()': > DB> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:647:25: error: > DB> 'rand_s' was not declared in this scope > DB> rand_s( &m_seed ); > > This seems to be exactly the same problem. > > Regards, > VZ > -- David Bergman David R Bergman Music LLC "Have Guitar Will Travel" Morristown NJ 551-655-4720 stu...@gm... www.davidrobertbergmanmusic.com --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus |
From: Ferrell, S. <sfe...@ya...> - 2019-10-17 22:55:16
|
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 dependencies is a bit more solid and you'll find there are more folks out there who can lend a hand when you do run into a problem. I'd suggest switching back to VS unless you have some good reasons for switching to CodeBlocks/MinGW. -- The quality of your thoughts will determine the quality of your life. On Thursday, October 17, 2019, 03:09:27 PM MST, David Bergman <stu...@gm...> wrote: 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 agree that this is clearly not a widgets issue but I'm still including that group since you were able to help so far. I am very reluctant to edit the stdlib.h file I have if the line numbers and sample info do not match at all. Can you confirm which version of MinGW you applied the patch to? Perhaps I will just get that one, or another compiler supported by Code Blocks and start over. David On 10/17/2019 5:17 PM, Vadim Zeitlin wrote: > On Thu, 17 Oct 2019 17:06:09 -0400 David Bergman wrote: > > DB> Thank you. I had installed using codeblocks-17.12mingw-nosetup.zip > DB> which comes with the MinGW compiler (circa 12/2017). If I understand > DB> your comment correctly the bug will not be released until later, or is > DB> there an existing patch? > > Yes, it's linked from the ticket URL I gave in the previous reply: > > https://dotsrc.dl.osdn.net/osdn/ticket/g/m/mi/mingw/39658/5565/declare-rand_s.patch > > DB> Rather than edit plplot source might it be better do grab the most > DB> recent compiler or is that not stable? > > I'm not really sure, but adding a declaration to stdlib.h (i.e. applying > the patch above) should be the simplest. OTOH you could also just copy > rand_s declaration in the file which needs it in plplot and avoid modifying > MinGW headers at all. But this is really not wx-related at all any more... > > DB> Doing the rand fix just exposed another bug related to seed (see > DB> below). Is there a list of all possible changes needed? Or is it safe > DB> to say any related to the _WIN32 condition, or rand() generators? > DB> > DB> David > DB> > DB> [ 79%] Building CXX object > DB> drivers/CMakeFiles/wxwidgets.dir/wxwidgets_dev.cpp.obj > DB> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp: In constructor > DB> 'Rand::Rand()': > DB> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:647:25: error: > DB> 'rand_s' was not declared in this scope > DB> rand_s( &m_seed ); > > This seems to be exactly the same problem. > > Regards, > VZ > -- David Bergman David R Bergman Music LLC "Have Guitar Will Travel" Morristown NJ 551-655-4720 stu...@gm... www.davidrobertbergmanmusic.com --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus _______________________________________________ Plplot-general mailing list Plp...@li... https://lists.sourceforge.net/lists/listinfo/plplot-general |
From: David B. <stu...@gm...> - 2019-10-17 23:19:31
|
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 is not on-line and VS requires monthly renewal of the license for their Express or Community editions of the VS IDE. I may still be able to use the compilers but hadn't considered that. On 10/17/2019 6:54 PM, Ferrell, Stephen wrote: > 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 dependencies is a bit more solid and you'll find there > are more folks out there who can lend a hand when you do run into a > problem. I'd suggest switching back to VS unless you have some good > reasons for switching to CodeBlocks/MinGW. > > -- The quality of your thoughts will determine the quality of your life. > > > On Thursday, October 17, 2019, 03:09:27 PM MST, David Bergman > <stu...@gm...> wrote: > > > 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 agree that this is clearly not a widgets issue but I'm still including > that group since you were able to help so far. I am very reluctant to > edit the stdlib.h file I have if the line numbers and sample info do not > match at all. Can you confirm which version of MinGW you applied the > patch to? Perhaps I will just get that one, or another compiler > supported by Code Blocks and start over. > > David > > > On 10/17/2019 5:17 PM, Vadim Zeitlin wrote: > > On Thu, 17 Oct 2019 17:06:09 -0400 David Bergman wrote: > > > > DB> Thank you. I had installed using codeblocks-17.12mingw-nosetup.zip > > DB> which comes with the MinGW compiler (circa 12/2017). If I > understand > > DB> your comment correctly the bug will not be released until later, > or is > > DB> there an existing patch? > > > > Yes, it's linked from the ticket URL I gave in the previous reply: > > > > > https://dotsrc.dl.osdn.net/osdn/ticket/g/m/mi/mingw/39658/5565/declare-rand_s.patch > > > > DB> Rather than edit plplot source might it be better do grab the most > > DB> recent compiler or is that not stable? > > > > I'm not really sure, but adding a declaration to stdlib.h (i.e. > applying > > the patch above) should be the simplest. OTOH you could also just copy > > rand_s declaration in the file which needs it in plplot and avoid > modifying > > MinGW headers at all. But this is really not wx-related at all any > more... > > > > DB> Doing the rand fix just exposed another bug related to seed (see > > DB> below). Is there a list of all possible changes needed? Or is > it safe > > DB> to say any related to the _WIN32 condition, or rand() generators? > > DB> > > DB> David > > DB> > > DB> [ 79%] Building CXX object > > DB> drivers/CMakeFiles/wxwidgets.dir/wxwidgets_dev.cpp.obj > > DB> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp: In constructor > > DB> 'Rand::Rand()': > > DB> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:647:25: error: > > DB> 'rand_s' was not declared in this scope > > DB> rand_s( &m_seed ); > > > > This seems to be exactly the same problem. > > > > Regards, > > VZ > > > -- > David Bergman > David R Bergman Music LLC > "Have Guitar Will Travel" > Morristown NJ > 551-655-4720 > stu...@gm... <mailto:stu...@gm...> > www.davidrobertbergmanmusic.com > > > --- > This email has been checked for viruses by Avast antivirus software. > https://www.avast.com/antivirus > > > > _______________________________________________ > Plplot-general mailing list > Plp...@li... > <mailto:Plp...@li...> > https://lists.sourceforge.net/lists/listinfo/plplot-general -- David Bergman David R Bergman Music LLC "Have Guitar Will Travel" Morristown NJ 551-655-4720 stu...@gm... www.davidrobertbergmanmusic.com |
From: Ferrell, S. <sfe...@ya...> - 2019-10-17 23:31:48
|
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. I see that it has build packages for PLPlot 5.13.0-1 with wxwidgets: Vcpkg: a tool to acquire and build C++ open source libraries on Windows | C++ Team Blog | | | | | | | | | | | Vcpkg: a tool to acquire and build C++ open source libraries on Windows ... Last update: 08/17/2018 We are delighted to announce the availability of Vcpkg on GitHub https://github.com/Micr... | | | The list of packages provided in the link are from Aug. of 2018 so I'm sure the packages for most builds have been updated since then as well. -- The quality of your thoughts will determine the quality of your life. On Thursday, October 17, 2019, 04:19:40 PM MST, David Bergman <stu...@gm...> wrote: 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 is not on-line and VS requires monthly renewal of the license for their Express or Community editions of the VS IDE. I may still be able to use the compilers but hadn't considered that. On 10/17/2019 6:54 PM, Ferrell, Stephen wrote: 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 dependencies is a bit more solid and you'll find there are more folks out there who can lend a hand when you do run into a problem. I'd suggest switching back to VS unless you have some good reasons for switching to CodeBlocks/MinGW. -- The quality of your thoughts will determine the quality of your life. On Thursday, October 17, 2019, 03:09:27 PM MST, David Bergman <stu...@gm...> wrote: 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 agree that this is clearly not a widgets issue but I'm still including that group since you were able to help so far. I am very reluctant to edit the stdlib.h file I have if the line numbers and sample info do not match at all. Can you confirm which version of MinGW you applied the patch to? Perhaps I will just get that one, or another compiler supported by Code Blocks and start over. David On 10/17/2019 5:17 PM, Vadim Zeitlin wrote: > On Thu, 17 Oct 2019 17:06:09 -0400 David Bergman wrote: > > DB> Thank you. I had installed using codeblocks-17.12mingw-nosetup.zip > DB> which comes with the MinGW compiler (circa 12/2017). If I understand > DB> your comment correctly the bug will not be released until later, or is > DB> there an existing patch? > > Yes, it's linked from the ticket URL I gave in the previous reply: > > https://dotsrc.dl.osdn.net/osdn/ticket/g/m/mi/mingw/39658/5565/declare-rand_s.patch > > DB> Rather than edit plplot source might it be better do grab the most > DB> recent compiler or is that not stable? > > I'm not really sure, but adding a declaration to stdlib.h (i.e. applying > the patch above) should be the simplest. OTOH you could also just copy > rand_s declaration in the file which needs it in plplot and avoid modifying > MinGW headers at all. But this is really not wx-related at all any more... > > DB> Doing the rand fix just exposed another bug related to seed (see > DB> below). Is there a list of all possible changes needed? Or is it safe > DB> to say any related to the _WIN32 condition, or rand() generators? > DB> > DB> David > DB> > DB> [ 79%] Building CXX object > DB> drivers/CMakeFiles/wxwidgets.dir/wxwidgets_dev.cpp.obj > DB> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp: In constructor > DB> 'Rand::Rand()': > DB> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:647:25: error: > DB> 'rand_s' was not declared in this scope > DB> rand_s( &m_seed ); > > This seems to be exactly the same problem. > > Regards, > VZ > -- David Bergman David R Bergman Music LLC "Have Guitar Will Travel" Morristown NJ 551-655-4720 stu...@gm... www.davidrobertbergmanmusic.com --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus _______________________________________________ Plplot-general mailing list Plp...@li... https://lists.sourceforge.net/lists/listinfo/plplot-general -- David Bergman David R Bergman Music LLC "Have Guitar Will Travel" Morristown NJ 551-655-4720 stu...@gm... www.davidrobertbergmanmusic.com | | Virus-free. www.avast.com | _______________________________________________ Plplot-general mailing list Plp...@li... https://lists.sourceforge.net/lists/listinfo/plplot-general |
From: Ferrell, S. <sfe...@ya...> - 2019-10-18 00:07:32
|
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 x64 Native Command Prompt: C:\Users\steve\Desktop\vcpkg-master>vcpkg integrate install You should be greeted with following afterward: Applied user-wide integration for this vcpkg root.All MSBuild C++ projects can now #include any installed libraries. Linking will be handled automatically.Installing new libraries will make them instantly available.CMake projects should use: "-DCMAKE_TOOLCHAIN_FILE=C:/Users/steve/Desktop/vcpkg-master/scripts/buildsystems/vcpkg.cmake" Next, I searched for the correct package with: C:\Users\steve\Desktop\vcpkg-master>vcpkg search plplot And was presented with the following packages: plplot 5.13.0-1 PLplot is a cross-platform software package for creating scientific plots whos...plplot[wxwidgets] plplot wxwidgets module Next, I invoked the build process for PLPlot/wxwidgets with: C:\Users\steve\Desktop\vcpkg-master>vcpkg install plplot[wxwidgets]:x64-windows And the resulting console output is below: The following packages will be built and installed: plplot[core,wxwidgets]:x64-windows * wxwidgets[core]:x64-windowsAdditional packages (*) will be modified to complete this operation.Starting package 1/2: wxwidgets:x64-windowsBuilding package wxwidgets[core]:x64-windows...-- Downloading https://github.com/wxWidgets/wxWidgets/archive/v3.1.1.tar.gz...-- Extracting source C:/Users/steve/Desktop/vcpkg-master/downloads/wxWidgets-wxWidgets-v3.1.1.tar.gz-- Applying patch disable-platform-lib-dir.patch-- Using source at C:/Users/steve/Desktop/vcpkg-master/buildtrees/wxwidgets/src/v3.1.1-e6df9985ee-- Configuring x64-windows-- Building x64-windows-dbg-- Building x64-windows-rel-- Performing post-build validation-- Performing post-build validation doneBuilding package wxwidgets[core]:x64-windows... doneInstalling package wxwidgets[core]:x64-windows...Installing package wxwidgets[core]:x64-windows... doneElapsed time for package wxwidgets:x64-windows: 11.13 minStarting package 2/2: plplot:x64-windowsBuilding package plplot[core,wxwidgets]:x64-windows...-- Downloading https://sourceforge.net/projects/plplot/files/plplot/5.13.0%20Source/plplot-5.13.0.tar.gz/download...-- Extracting source C:/Users/steve/Desktop/vcpkg-master/downloads/plplot-5.13.0.tar.gz-- Applying patch C:/Users/steve/Desktop/vcpkg-master/ports/plplot/install-interface-include-directories.patch-- Configuring x64-windows-- Building x64-windows-dbg-- Building x64-windows-rel-- Installing: C:/Users/steve/Desktop/vcpkg-master/packages/plplot_x64-windows/share/plplot/copyright-- Performing post-build validation-- Performing post-build validation doneBuilding package plplot[core,wxwidgets]:x64-windows... doneInstalling package plplot[core,wxwidgets]:x64-windows...Installing package plplot[core,wxwidgets]:x64-windows... doneElapsed time for package plplot:x64-windows: 1.911 min Total elapsed time: 13.04 min The package plplot:x64-windows provides CMake targets: find_package(plplot CONFIG REQUIRED) target_link_libraries(main PRIVATE plplot csirocsa qsastime plplotcxx) This is by far the easiest method for building on Windows. Regards, Steve -- The quality of your thoughts will determine the quality of your life. On Thursday, October 17, 2019, 04:19:40 PM MST, David Bergman <stu...@gm...> wrote: 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 is not on-line and VS requires monthly renewal of the license for their Express or Community editions of the VS IDE. I may still be able to use the compilers but hadn't considered that. On 10/17/2019 6:54 PM, Ferrell, Stephen wrote: 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 dependencies is a bit more solid and you'll find there are more folks out there who can lend a hand when you do run into a problem. I'd suggest switching back to VS unless you have some good reasons for switching to CodeBlocks/MinGW. -- The quality of your thoughts will determine the quality of your life. On Thursday, October 17, 2019, 03:09:27 PM MST, David Bergman <stu...@gm...> wrote: 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 agree that this is clearly not a widgets issue but I'm still including that group since you were able to help so far. I am very reluctant to edit the stdlib.h file I have if the line numbers and sample info do not match at all. Can you confirm which version of MinGW you applied the patch to? Perhaps I will just get that one, or another compiler supported by Code Blocks and start over. David On 10/17/2019 5:17 PM, Vadim Zeitlin wrote: > On Thu, 17 Oct 2019 17:06:09 -0400 David Bergman wrote: > > DB> Thank you. I had installed using codeblocks-17.12mingw-nosetup.zip > DB> which comes with the MinGW compiler (circa 12/2017). If I understand > DB> your comment correctly the bug will not be released until later, or is > DB> there an existing patch? > > Yes, it's linked from the ticket URL I gave in the previous reply: > > https://dotsrc.dl.osdn.net/osdn/ticket/g/m/mi/mingw/39658/5565/declare-rand_s.patch > > DB> Rather than edit plplot source might it be better do grab the most > DB> recent compiler or is that not stable? > > I'm not really sure, but adding a declaration to stdlib.h (i.e. applying > the patch above) should be the simplest. OTOH you could also just copy > rand_s declaration in the file which needs it in plplot and avoid modifying > MinGW headers at all. But this is really not wx-related at all any more... > > DB> Doing the rand fix just exposed another bug related to seed (see > DB> below). Is there a list of all possible changes needed? Or is it safe > DB> to say any related to the _WIN32 condition, or rand() generators? > DB> > DB> David > DB> > DB> [ 79%] Building CXX object > DB> drivers/CMakeFiles/wxwidgets.dir/wxwidgets_dev.cpp.obj > DB> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp: In constructor > DB> 'Rand::Rand()': > DB> C:\temp\src\plplot-5.15.0\drivers\wxwidgets_dev.cpp:647:25: error: > DB> 'rand_s' was not declared in this scope > DB> rand_s( &m_seed ); > > This seems to be exactly the same problem. > > Regards, > VZ > -- David Bergman David R Bergman Music LLC "Have Guitar Will Travel" Morristown NJ 551-655-4720 stu...@gm... www.davidrobertbergmanmusic.com --- This email has been checked for viruses by Avast antivirus software. https://www.avast.com/antivirus _______________________________________________ Plplot-general mailing list Plp...@li... https://lists.sourceforge.net/lists/listinfo/plplot-general -- David Bergman David R Bergman Music LLC "Have Guitar Will Travel" Morristown NJ 551-655-4720 stu...@gm... www.davidrobertbergmanmusic.com | | Virus-free. www.avast.com | _______________________________________________ Plplot-general mailing list Plp...@li... https://lists.sourceforge.net/lists/listinfo/plplot-general |