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
stuntguitar1...@gmail.com
www.davidrobertbergmanmusic.com
---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus
_______________________________________________
Plplot-general mailing list
Plplot-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/plplot-general