"Add documentation about the fix for missing x86
authorChris Lattner <sabre@nondot.org>
Fri, 3 Apr 2009 20:23:52 +0000 (20:23 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 3 Apr 2009 20:23:52 +0000 (20:23 +0000)
target library in windows under the "Common problems" section."

Patch by Stefanus Du Toit!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@68399 91177308-0d34-0410-b5e6-96231b3b80d8

docs/GettingStartedVS.html

index 37bdd30b08523c44a26956e6a637dfb6449580f6..c7f384dcab91fcb029c559d9f338751450f1086b 100644 (file)
@@ -371,6 +371,16 @@ int main() {
     </li>
   </ul>
 
+  <ul>
+    <li>In Visual C++, if you are linking with the x86 target statically, the
+    linker will remove the x86 target library from your generated executable
+    or shared library because there are no references to it. You can force the
+    linker to include these references by using 
+    "/INCLUDE:_X86TargetMachineModule" when linking. In Visual Studio IDE, this 
+    can be added in Project Properties->Linker->Input->Force Symbol References.
+    </li>
+  </ul>
+
 <p>If you are having problems building or using LLVM, or if you have any other
 general questions about LLVM, please consult the <a href="FAQ.html">Frequently
 Asked Questions</a> page.</p>