title: DLL Shared Data Section Does Not Exist Error
body: <p>I try to declare a shared data segment in a DLL. I declare the area with:</p>
  
  <pre><code>#pragma data_seg(".shared")
  int varx=0; 
  #pragma data_seg()
  __declspec(allocate(".shared")) 
  // I found this declspec suggestion in another forum
  #pragma comment (linker,"/section:.shared,RWS")
  </code></pre>
  
  <p>Also I add </p>
  
  <pre><code>SECTIONS
              .shared READ WRITE SHARED 
  </code></pre>
  
  <p>into the def file. However I always get:</p>
  
  <pre><code>LINK : warning LNK4039: section '.shared' specified with /SECTION option does not exist
  </code></pre>
  
  <p>error. If I do only one (.def or pragma comment) get only one, if do both get two errors.</p>
  
  <p>Anything I miss?</p>