G
G. Peter
Hi there,
I've a 'funny' error message of my compiler (g++ 2.95.4) that tells me:
robot.cpp: In method `Robot::Robot()':
robot.cpp:19: warning: deprecated conversion from string constant to `char *'
In Line 19 of my file 'robot.cpp' I declare the constructor of class
robot like:
18
19 Robot::Robot(){
20
21 cout << "welcome to Robot's ctor!" << endl;
22
23 //do some things ...
24
25 } // end ctor
26
In line 19 are no 'strings' or 'char*s', or am I blind?
Do I call a deep hidden lib or something without knowing it?
OK, it is a warning so it seems not to be very seroius.
That was what I thougt but I was wrong!
I can compile the prog, but it does not work! :-(
The mysterious thing is, when I start the debugger I reach line 19 but
never line 20.
Thanks for reading this
Gregor ([email protected])
I've a 'funny' error message of my compiler (g++ 2.95.4) that tells me:
robot.cpp: In method `Robot::Robot()':
robot.cpp:19: warning: deprecated conversion from string constant to `char *'
In Line 19 of my file 'robot.cpp' I declare the constructor of class
robot like:
18
19 Robot::Robot(){
20
21 cout << "welcome to Robot's ctor!" << endl;
22
23 //do some things ...
24
25 } // end ctor
26
In line 19 are no 'strings' or 'char*s', or am I blind?
Do I call a deep hidden lib or something without knowing it?
OK, it is a warning so it seems not to be very seroius.
That was what I thougt but I was wrong!
I can compile the prog, but it does not work! :-(
The mysterious thing is, when I start the debugger I reach line 19 but
never line 20.
Thanks for reading this
Gregor ([email protected])