Lots of errors and warnings but no output file to debug

Hello,

I am trying to compile source:
[C:\MinGW\bin\c++.exe -g C:\Users\Fadiya\Desktop\G++\cc-rnn.cpp] and
[C:\MinGW\bin\g++.exe -g C:\Users\Fadiya\Desktop\G++\cc-rnn.cpp -o cc-rnn].

I get a lot of errors and warnings but no output file to debug.
I search my entire hard drive for the file.

Here are some of the errors received.
1
2
3
4
5
6
7
8
9
10
11
C:\Users\Fadiya\Desktop\G++\cc-rnn.cpp: In member function 'void CombinedEvolution::Procedure(bool, double, std::ofstrea
m&, std::ofstream&, std::ofstream&, double, double)':
C:\Users\Fadiya\Desktop\G++\cc-rnn.cpp:2210:25: error: array must be initialized with a brace-enclosed initializer
  const char* file[15] = "Learnt.txt";
                         ^~~~~~~~~~~~
C:\Users\Fadiya\Desktop\G++\cc-rnn.cpp:2214:75: error: invalid conversion from 'const char*' to 'char*' [-fpermissive]
  TrainingExamples Samples(trainfile, trainsize, acousticVector, outputsize);
                                                                           ^
C:\Users\Fadiya\Desktop\G++\cc-rnn.cpp:97:25: note:   initializing argument 1 of 'TrainingExamples::TrainingExamples(cha
r*, int, int, int)'
  TrainingExamples(char* File, int sampleSize, int columnSize,


Last edited on
const char* file[15] defines an array of 15 pointers to const char.

You probably meant:
 
const char* file = "Learnt.txt";

Or alternativly:
 
const char file[] = "Learnt.txt";
Topic archived. No new replies allowed.