title: how to compile a 64-bit .dll on windows with lcc-win?
body: <p>Using Windows 7 64-bit and lcc-win32</p>
  
  <p>2 source files:</p>
  
  <pre><code>Hello.c
  HelloImpl.c
  </code></pre>
  
  <p>The following:</p>
  
  <pre><code>lcc -shadows -unused -v -IC:\lcc\include -I"C:\Program Files\Java\jdk1.7.0_45\include" -I"C:\Program Files\Java\jdk1.7.0_45\include\win32" -g2 %1.c
  lcc -shadows -unused -v -IC:\lcc\include -I"C:\Program Files\Java\jdk1.7.0_45\include" -I"C:\Program Files\Java\jdk1.7.0_45\include\win32" -g2 %1Impl.c
  lcclnk.exe -map %1.map -dll -o %1.dll %1.obj %1Impl.obj
  </code></pre>
  
  <p>Produces a 32-bit .dll</p>
  
  <p>but this:</p>
  
  <pre><code>lcc64 -shadows -unused -v -IC:\lcc\include64 -I"C:\Program Files\Java\jdk1.7.0_45\include" -I"C:\Program Files\Java\jdk1.7.0_45\include\win32" -g2 %1.c
  lcc64 -shadows -unused -v -IC:\lcc\include64 -I"C:\Program Files\Java\jdk1.7.0_45\include" -I"C:\Program Files\Java\jdk1.7.0_45\include\win32" -g2 %1Impl.c
  lcclnk64.exe -map %1.map -dll -o %1.dll %1.obj %1Impl.obj
  </code></pre>
  
  <p>Produces:</p>
  
  <pre><code>Entry point DllMain not found
  Use the -entry command line option
  </code></pre>
  
  <p>After the linker command and a 2K .dll filled with zeros !</p>
  
  <p>What am I doing wrong ?</p>