[LLVMbugs] [Bug 13432] New: tutorial compilation command is broken

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Jul 22 15:24:59 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13432

             Bug #: 13432
           Summary: tutorial compilation command is broken
           Product: Documentation
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: General docs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: quixote72 at hotmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


The llvm tutorial gives:

  clang++ -g -O3 toy.cpp `llvm-config --cppflags --ldflags --libs core` -o toy

as the suggested compilation but llvm-config outputs linker flags in the wrong
order, i.e. system libraries follow llvm libraries instead of the other way
around, as mentioned in http://llvm.org/bugs/show_bug.cgi?id=8449. As a result
the tutorial code does not link with the provided arguments.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list