On Wed, 28 Oct 2020, riles(a)triton.net wrote:
Problem 1.
In the code below I have noticed that this line-> std::string what =
"/why/do/I/delete";
will cause all files in this folder, set here line-> char
work_dir[]="/home/ryan/workspace/TesterTest";
to be deleted. If this line is deleted or commented out line-> std::string what =
"/why/do/I/delete";
then nothing gets deleted, i.e everything works fine.
Problem 2.
Now taking the code below, If you set this line-> int use_matrix = 1; /* or 0 */
as such and delete the following two lines
line-> char work_dir[]="/home/ryan/workspace/TesterTest/";
line-> strcpy(config_path.workdir ,work_dir);
then correlogram_plot will not show the plot if this line-> std::string what =
"/why/do/I/delete";
is at the end of the program
Below is all the code needed to recreate the problem...
I'm afraid your code will not compile for me. g++ is not accepting
double complex *z;
in gretl_matrix.h. The error message is:
"ISO C++ forbids declaration of āzā with no type".
Allin