1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44
|
g++ -Wall -g -std=c++11 -c -o Song.o Song.cpp
Song.cpp: In constructor ‘Song::Song(char*, char*, char*, char*)’:
Song.cpp:17:29: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermiss ive]
strcpy(this->title,50,title);
^
Song.cpp:17:29: error: too many arguments to function ‘char* strcpy(char*, const char*)’
In file included from /usr/local/include/c++/5.2.0/cstring:42:0,
from Song.h:4,
from Song.cpp:1:
/usr/include/string.h:125:14: note: declared here
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
Song.cpp:18:33: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermiss ive]
strcpy(this->artist, 50, artist);
^
Song.cpp:18:33: error: too many arguments to function ‘char* strcpy(char*, const char*)’
In file included from /usr/local/include/c++/5.2.0/cstring:42:0,
from Song.h:4,
from Song.cpp:1:
/usr/include/string.h:125:14: note: declared here
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
Song.cpp:19:37: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermiss ive]
strcpy(this->duration, 50, duration);
^
Song.cpp:19:37: error: too many arguments to function ‘char* strcpy(char*, const char*)’
In file included from /usr/local/include/c++/5.2.0/cstring:42:0,
from Song.h:4,
from Song.cpp:1:
/usr/include/string.h:125:14: note: declared here
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
Song.cpp:20:31: error: invalid conversion from ‘int’ to ‘const char*’ [-fpermiss ive]
strcpy(this->album, 50, album);
^
Song.cpp:20:31: error: too many arguments to function ‘char* strcpy(char*, const char*)’
In file included from /usr/local/include/c++/5.2.0/cstring:42:0,
from Song.h:4,
from Song.cpp:1:
/usr/include/string.h:125:14: note: declared here
extern char *strcpy (char *__restrict __dest, const char *__restrict __src)
^
make: *** [Song.o] Error 1
|