title: Compile in Linux/Unix issue C++
body: <p>This is only part of an overall program and compiles and runs fine in Windows, however it does not like my strcpy in Linux/Unix. What am I doing wrong and how can I fix it? Also a note, I am not allowed to use string, only cstring.</p>
  
  <p>Song.cpp</p>
  
  <pre><code>#include "Song.h"
  
  
  Song::Song()
  {
  }
  
  
  Song::~Song()
  {
  }
  
  
  Song::Song(char* title, char* artist, char* duration, char* album)
  {
  strcpy(this-&gt;title,50,title);
  strcpy(this-&gt;artist, 50, artist);
  strcpy(this-&gt;duration, 50, duration);
  strcpy(this-&gt;album, 50, album);
  }
  
  void Song::setTitle(char* title)
  {
  this-&gt;title= title;
  }
  void Song::setArtist(char* artist)
  {
  this-&gt;artist = artist;
  }
  void Song::setDuration(char* duration)
  {
  this-&gt;duration= duration;
  }
  void Song::setAlbum(char* album)
  {
  this-&gt;album= album;
  }
  
  char* Song::getTitle()
  {
  return this-&gt;title;
  }
  char* Song::getArtist()
  {
  return this-&gt;artist;
  }
  char* Song::getDuration()
  {
  return this-&gt;duration;
  }
  char* Song::getAlbum()
  {
  return this-&gt;album;
  }
  </code></pre>
  
  <p>Song.h</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;iomanip&gt;
  #include &lt;fstream&gt;
  #include &lt;cstring&gt;
  #include &lt;cctype&gt;
  
  using namespace std;
  
  class Song
  {
  private:
      char* title;
      char* artist;
      char* duration;
      char* album;
  
  public:
      Song();
      ~Song();
  
      Song(char* title, char* artist, char* duration, char* album);
  
      void setTitle(char* title);
      void setArtist(char* artist);
      void setDuration(char* duration);
      void setAlbum(char* album);
  
      char* getTitle();
      char* getArtist();
      char* getDuration();
      char* getAlbum();
  
  
  };
  </code></pre>