$ llvm-g++ out.s -o out.exe `llvm-config --ldflags --libs x86 core system suppo rt` C:/Development/MSYS/1.0/home/Michael/llvm-2.6/lib/libLLVMCore.a(Constants.cp p.ob j):Constants.cpp:(.text$_ZNK4llvm5Value7getTypeEv[llvm::Value::getType() const]+ 0x0): multiple definition of `llvm::Value::getType() const' C:/Users/Michael/AppData/Local/Temp/ccCwnsiG.o:fake:(.text$linkonce__ZNK4llv m5Va lue7getTypeEv+0x0): first defined here C:/Development/MSYS/1.0/home/Michael/llvm-2.6/lib/libLLVMCore.a(Type.cpp.obj ):Ty pe.cpp:(.text$_ZNK4llvm12PATypeHolder3getEv[llvm::PATypeHolder::get() const]+0x0 ): multiple definition of `llvm::PATypeHolder::get() const' C:/Users/Michael/AppData/Local/Temp/ccCwnsiG.o:fake:(.text$linkonce__ZNK4llv m12P ATypeHolder3getEv+0x0): first defined here C:/Development/MSYS/1.0/home/Michael/llvm-2.6/lib/libLLVMCore.a(ConstantFold .cpp .obj):ConstantFold.cpp:(.text$_ZSt18uninitialized_copyIPPN4llvm5ValueES3_ET0 _T_S 5_S4_[llvm::Value** std::uninitialized_copy(llvm:: Value**, llvm::Value**, llvm::Value**)]+0x0): multiple definition of `llvm::Valu e** std::uninitialized_copy(llvm::Value**, llvm::V alue**, llvm::Value**)' C:/Users/Michael/AppData/Local/Temp/ccCwnsiG.o:fake:(.text$linkonce__ZSt18un init ialized_copyIPPN4llvm5ValueES3_ET0_T_S5_S4_+0x0): first defined here C:/Development/MSYS/1.0/home/Michael/llvm-2.6/lib/libLLVMCore.a(Metadata.cpp .obj ):Metadata.cpp:(.text$_ZNSt6vectorIPN4llvm5ValueESaIS2_EE13_M_insert_auxEN9_ _gnu _cxx17__normal_iteratorIPS2_S4_EERKS2_[std::vector >::_M_insert_aux(__gnu_cxx::__normal_iterator > >, llvm::Value* const&)]+0x0 ): multiple definition of `std::vector >::_M_insert_aux(__gnu_cxx::__normal_iterator > >, llvm::Value* const&)' C:/Users/Michael/AppData/Local/Temp/ccCwnsiG.o:fake:(.text$linkonce__ZNSt6ve ctor IPN4llvm5ValueESaIS2_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS2_S4 _EER KS2_+0x0): first defined here C:/Development/MSYS/1.0/home/Michael/llvm-2.6/lib/libLLVMSupport.a(CommandLi ne.c pp.obj):CommandLine.cpp:(.text$_ZN4llvm2cl6parserISsED1Ev[llvm::cl::parser, std::allocator > >::~parser()]+ 0x0): multiple definition of `llvm::cl::parser::~parser()' C:/Users/Michael/AppData/Local/Temp/ccCwnsiG.o:fake:(.text$linkonce__ZN4llvm 2cl6 parserISsED1Ev+0x0): first defined here C:/Development/MSYS/1.0/home/Michael/llvm-2.6/lib/libLLVMSupport.a(CommandLi ne.c pp.obj):CommandLine.cpp:(.text$_ZN4llvm2cl3optISsLb0ENS0_6parserISsEEED1Ev[l lvm: :cl::opt, std::allocator >, false, llvm::cl::parser, std::al locator > > >::~opt()]+0x0): multiple definition of `llvm::cl::opt >::~opt()' C:/Users/Michael/AppData/Local/Temp/ccCwnsiG.o:fake:(.text$linkonce__ZN4llvm 2cl3 optISsLb0ENS0_6parserISsEEED1Ev+0x0): first defined here c:/development/msys/1.0/home/michael/llvm-gcc-4.2/bin/../lib/gcc/i386-mingw3 2/4. 2.1/../../../libstdc++.a(string-inst.o): In function `ZStplIcSt11char_traitsIcES aIcEESbIT_T0_T1_EPKS3_RKS6_': c:\proj\llvm\llvm-gcc-4.2\build\i386-mingw32\libstdc++-v3\src/c:/proj/llvm/l lvm- gcc-4.2/build/i386-mingw32/libstdc++-v3/include/bits/basic_string.tcc:675: multi ple definition of `std::basic_string, std::allocato r > std::operator+, std::allocator >(ch ar const*, std::basic_string, std::allocator > const&)' C:/Development/MSYS/1.0/home/Michael/llvm-2.6/lib/libLLVMCore.a(Function.cpp .obj ):Function.cpp:(.text$_ZStplIcSt11char_traitsIcESaIcEESbIT_T0_T1_EPKS3_RKS6_ [std ::basic_string, std::allocator > std::operato r+, std::allocator >(char const*, std::basic_ string, std::allocator > const&)]+0x0): first defined here c:/development/msys/1.0/home/michael/llvm-gcc-4.2/bin/../lib/gcc/i386-mingw3 2/4. 2.1/../../../libstdc++.a(string-inst.o): In function `ZNSsC1IN9__gnu_cxx17__norm al_iteratorIPcSsEEEET_S4_RKSaIcE': c:\proj\llvm\llvm-gcc-4.2\build\i386-mingw32\libstdc++-v3\src/c:/proj/llvm/l lvm- gcc-4.2/build/i386-mingw32/libstdc++-v3/include/bits/basic_string.tcc:241: multi ple definition of `std::basic_string, std::allocato r >::basic_string<__gnu_cxx::__normal_iterator >(__gnu _cxx::__normal_iterator, __gnu_cxx::__normal_iterator, std::allocator const&)' C:/Development/MSYS/1.0/home/Michael/llvm-2.6/lib/libLLVMSupport.a(CommandLi ne.c pp.obj):CommandLine.cpp:(.text$_ZNSsC1IN9__gnu_cxx17__normal_iteratorIPcSsEE EET_ S4_RKSaIcE[std::basic_string, std::allocator >::basic_string<__gnu_cxx::__normal_iterator, std::allocator > > >(__gnu_cxx::__normal_iterator, std::allocator > >, __g nu_cxx::__normal_iterator, std::allocator > >, std::allocator const&)]+0x0): first defined her e c:/development/msys/1.0/home/michael/llvm-gcc-4.2/bin/../lib/gcc/i386-mingw3 2/4. 2.1/../../../libstdc++.a(string-inst.o): In function `ZNSs12_S_constructIN9__gnu _cxx17__normal_iteratorIPcSsEEEES2_T_S4_RKSaIcESt20forward_iterator_tag': c:\proj\llvm\llvm-gcc-4.2\build\i386-mingw32\libstdc++-v3\src/c:/proj/llvm/l lvm- gcc-4.2/build/i386-mingw32/libstdc++-v3/include/bits/basic_string.tcc:138: multi ple definition of `char* std::string::_S_construct<__gnu_cxx::__normal_iterator< char*, std::string> >(__gnu_cxx::__normal_iterator, __gnu_cx x::__normal_iterator, std::allocator const&, std::forw ard_iterator_tag)' C:/Development/MSYS/1.0/home/Michael/llvm-2.6/lib/libLLVMCore.a(AsmWriter.cp p.ob j):AsmWriter.cpp:(.text$_ZNSs12_S_constructIN9__gnu_cxx17__normal_iteratorIP cSsE EEES2_T_S4_RKSaIcESt20forward_iterator_tag[char* std::basic_string, std::allocator >::_S_construct<__gnu_cxx::__normal_iterat or, std::allocator > > >(__gnu_cxx::__normal_iterator, std::allocator > >, __gnu_cxx::__normal_iterator, std::allocator > >, std::allocator< char> const&, std::forward_iterator_tag)]+0x0): first defined here c:/development/msys/1.0/home/michael/llvm-gcc-4.2/bin/../lib/gcc/i386-mingw3 2/4. 2.1/../../../libstdc++.a(string-inst.o): In function `ZNSs12_S_constructIPcEES0_ T_S1_RKSaIcESt20forward_iterator_tag': c:\proj\llvm\llvm-gcc-4.2\build\i386-mingw32\libstdc++-v3\src/c:/proj/llvm/l lvm- gcc-4.2/build/i386-mingw32/libstdc++-v3/include/bits/basic_string.tcc:138: multi ple definition of `char* std::string::_S_construct(char*, char*, std::all ocator const&, std::forward_iterator_tag)' C:/Development/MSYS/1.0/home/Michael/llvm-2.6/lib/libLLVMSupport.a(Twine.cpp .obj ):Twine.cpp:(.text$_ZNSs12_S_constructIPcEES0_T_S1_RKSaIcESt20forward_iterat or_t ag[char* std::basic_string, std::allocator >: :_S_construct(char*, char*, std::allocator const&, std::forward_ite rator_tag)]+0x0): first defined here c:/development/msys/1.0/home/michael/llvm-gcc-4.2/bin/../lib/gcc/i386-mingw3 2/4. 2.1/../../../libstdc++.a(string-inst.o): In function `ZNSs12_S_constructIPKcEEPc T_S3_RKSaIcESt20forward_iterator_tag': c:\proj\llvm\llvm-gcc-4.2\build\i386-mingw32\libstdc++-v3\src/c:/proj/llvm/l lvm- gcc-4.2/build/i386-mingw32/libstdc++-v3/include/bits/basic_string.tcc:138: multi ple definition of `char* std::string::_S_construct(char const*, cha r const*, std::allocator const&, std::forward_iterator_tag)' C:/Development/MSYS/1.0/home/Michael/llvm-2.6/lib/libLLVMSupport.a(CommandLi ne.c pp.obj):CommandLine.cpp:(.text$_ZNSs12_S_constructIPKcEEPcT_S3_RKSaIcESt20fo rwar d_iterator_tag[char* std::basic_string, std::alloca tor >::_S_construct(char const*, char const*, std::allocator< char> const&, std::forward_iterator_tag)]+0x0): first defined here Warning: resolving _GetModuleHandleA by linking to _GetModuleHandleA@4 Use --enable-stdcall-fixup to disable these warnings Use --disable-stdcall-fixup to disable these fixups Warning: resolving _GetProcAddress by linking to _GetProcAddress@8 Warning: resolving _Sleep by linking to _Sleep@4 Warning: resolving _InterlockedIncrement by linking to _InterlockedIncrement@4 Warning: resolving _TlsFree by linking to _TlsFree@4 Warning: resolving _ReleaseSemaphore by linking to _ReleaseSemaphore@12 Warning: resolving _GetLastError by linking to _GetLastError@0 Warning: resolving _GetCurrentThreadId by linking to _GetCurrentThreadId@0 Warning: resolving _WaitForSingleObject by linking to _WaitForSingleObject@8 Warning: resolving _TlsSetValue by linking to _TlsSetValue@8 Warning: resolving _TlsGetValue by linking to _TlsGetValue@4 Warning: resolving _InterlockedDecrement by linking to _InterlockedDecrement@4 Warning: resolving _TlsAlloc by linking to _TlsAlloc@0 Warning: resolving _SetLastError by linking to _SetLastError@4 Warning: resolving _CreateSemaphoreA by linking to _CreateSemaphoreA@16 C:/Users/Michael/AppData/Local/Temp/ccCwnsiG.o:fake:(.text+0x2b9): undefined ref erence to `llvm::Type::DoubleTy' C:/Users/Michael/AppData/Local/Temp/ccCwnsiG.o:fake:(.text+0x379): undefined ref erence to `llvm::Type::FloatTy' C:/Users/Michael/AppData/Local/Temp/ccCwnsiG.o:fake:(.text+0x3d4): undefined ref erence to `llvm::Type::Int32Ty' C:/Users/Michael/AppData/Local/Temp/ccCwnsiG.o:fake:(.text+0x489): undefined ref erence to `llvm::Type::Int32Ty' C:/Users/Michael/AppData/Local/Temp/ccCwnsiG.o:fake:(.text+0x533): undefined ref erence to `llvm::Type::Int32Ty' C:/Users/Michael/AppData/Local/Temp/ccCwnsiG.o:fake:(.text+0x57b): undefined ref erence to `llvm::ConstantArray::get(std::string const&, bool)' C:/Users/Michael/AppData/Local/Temp/ccCwnsiG.o:fake:(.text$linkonce__ZN4llvm 9Str ingMapImNS_15MallocAllocatorEE16GetOrCreateValueIiEERNS_14StringMapEntryImEE PKcS 8_T_+0x3c): undefined reference to `llvm::StringMapImpl::LookupBucketFor(char co nst*, char const*)' C:/Development/MSYS/1.0/home/Michael/llvm-2.6/lib/libLLVMSystem.a(Process.cp p.ob j):Process.cpp:(.text+0x346): undefined reference to `GetProcessMemoryInfo@12' collect2: ld returned 1 exit status