title: export c++ constructor using version script in g++
body: <p>Suppose I have this simple C++ class:</p>
  
  <pre><code>//Myclass.h
  class MyClass
  {
      public:
  
      MyClass(char *cfgFile,int Num);
      void tfuuuuuuu1(double X);
      void tfuuuuuuu2(float X,float Y);
  
  };
  </code></pre>
  
  <p>I want to export only the constructor <code>MyClass(char *cfgFile,int Num);</code> <strong>using the <code>--version-script</code> option in gcc</strong> (7.4.0 if that matters) so when I enter 
  <code>$ nm -D --defined-only libMyLib.so</code> I will only see the constructor, how can I do this?</p>