<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=text/html;charset=iso-8859-1 http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18943"></HEAD>
<BODY style="PADDING-LEFT: 10px; PADDING-RIGHT: 10px; PADDING-TOP: 15px"
id=MailContainerBody leftMargin=0 topMargin=0 CanvasTabStop="true"
name="Compose message area">
<DIV><FONT face=Calibri>This is the error message:</FONT></DIV>
<DIV><FONT face=Calibri>$ clang++ -v new.cpp<BR>clang version 2.8
(branches/release_28 113675)<BR>Target: i686-pc-mingw32<BR>Thread model:
posix<BR> "C:/msys/local/bin/clang++.exe" -cc1 -triple i686-pc-mingw32 -S
-disable-free -<BR>disable-llvm-verifier -main-file-name new.cpp
-mrelocation-model static -mdisabl<BR>e-fp-elim -mconstructor-aliases
-target-linker-version 2.20.51.20100613 -v -reso<BR>urce-dir
C:/msys/local/lib/clang/2.8 -ferror-limit 19 -fmessage-length 80
-fexce<BR>ptions -fgnu-runtime -fdiagnostics-show-option -fcolor-diagnostics -o
C:/Windows<BR>/TEMP/cc-000000.s -x c++ new.cpp<BR>clang -cc1 version 2.8 based
upon llvm 2.8rc hosted on i686-pc-mingw32<BR>ignoring nonexistent directory
"c:/MinGW/lib/gcc/mingw32/4.4.0/include"<BR>ignoring nonexistent directory
"c:/MinGW/lib/gcc/mingw32/4.4.0/include/c++"<BR>ignoring nonexistent directory
"c:/MinGW/lib/gcc/mingw32/4.4.0/include/c++/mingw<BR>32"<BR>ignoring nonexistent
directory "c:/MinGW/lib/gcc/mingw32/4.4.0/include/c++/backw<BR>ard"<BR>ignoring
nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.3.0/include"<BR>ignoring
nonexistent directory "c:/MinGW/lib/gcc/mingw32/4.3.0/include/c++"<BR>ignoring
nonexistent directory
"c:/MinGW/lib/gcc/mingw32/4.3.0/include/c++/mingw<BR>32"<BR>ignoring nonexistent
directory "c:/MinGW/lib/gcc/mingw32/4.3.0/include/c++/backw<BR>ard"<BR>ignoring
nonexistent directory "/usr/local/include"<BR>ignoring nonexistent directory
"/usr/include"<BR>#include "..." search starts here:<BR>#include <...>
search starts
here:<BR> c:/MinGW/lib/gcc/mingw32/4.5.0/include<BR> c:/MinGW/lib/gcc/mingw32/4.5.0/include/c++<BR> c:/MinGW/lib/gcc/mingw32/4.5.0/include/c++/mingw32<BR> c:/MinGW/lib/gcc/mingw32/4.5.0/include/c++/backward<BR> C:/msys/local/lib/clang/2.8/include<BR> c:/mingw/include<BR>End
of search list.<BR> "c:/MinGW/bin/g++.exe" -v -c -o
C:/Windows/TEMP/cc-000001.o -x assembler
C:/Win<BR>dows/TEMP/cc-000000.s<BR>Using built-in
specs.<BR>COLLECT_GCC=c:/MinGW/bin/g++.exe<BR>COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.5.0/lto-wrapper.exe<BR>Target:
mingw32<BR>Configured with: ../gcc-4.5.0/configure
--enable-languages=c,c++,ada,fortran,obj<BR>c,obj-c++ --disable-sjlj-exceptions
--with-dwarf2 --enable-shared --enable-libgo<BR>mp --disable-win32-registry
--enable-libstdcxx-debug --enable-version-specific-r<BR>untime-libs
--disable-werror --build=mingw32 --prefix=/mingw<BR>Thread model: win32<BR>gcc
version 4.5.0 (GCC)<BR>COLLECT_GCC_OPTIONS='-v' '-c' '-o'
'C:/Windows/TEMP/cc-000001.o' '-shared-libgcc<BR>' '-mtune=i386'
'-march=i386'<BR> c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/as.exe
-o C:/Wind<BR>ows/TEMP/cc-000001.o
C:/Windows/TEMP/cc-000000.s<BR>COMPILER_PATH=c:/mingw/bin/../libexec/gcc/mingw32/4.5.0/;c:/mingw/bin/../libexec<BR>/gcc/;c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/<BR>LIBRARY_PATH=c:/mingw/bin/../lib/gcc/mingw32/4.5.0/;c:/mingw/bin/../lib/gcc/;c:/<BR>mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/lib/;c:/mingw/bin/../lib/<BR>gcc/mingw32/4.5.0/../../../;/mingw/lib/<BR>COLLECT_GCC_OPTIONS='-v'
'-c' '-o' 'C:/Windows/TEMP/cc-000001.o' '-shared-libgcc<BR>' '-mtune=i386'
'-march=i386'<BR> "c:/MinGW/bin/g++.exe" -v -o a.out
C:/Windows/TEMP/cc-000001.o<BR>Using built-in
specs.<BR>COLLECT_GCC=c:/MinGW/bin/g++.exe<BR>COLLECT_LTO_WRAPPER=c:/mingw/bin/../libexec/gcc/mingw32/4.5.0/lto-wrapper.exe<BR>Target:
mingw32<BR>Configured with: ../gcc-4.5.0/configure
--enable-languages=c,c++,ada,fortran,obj<BR>c,obj-c++ --disable-sjlj-exceptions
--with-dwarf2 --enable-shared --enable-libgo<BR>mp --disable-win32-registry
--enable-libstdcxx-debug --enable-version-specific-r<BR>untime-libs
--disable-werror --build=mingw32 --prefix=/mingw<BR>Thread model: win32<BR>gcc
version 4.5.0
(GCC)<BR>COMPILER_PATH=c:/mingw/bin/../libexec/gcc/mingw32/4.5.0/;c:/mingw/bin/../libexec<BR>/gcc/;c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/<BR>LIBRARY_PATH=c:/mingw/bin/../lib/gcc/mingw32/4.5.0/;c:/mingw/bin/../lib/gcc/;c:/<BR>mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/lib/;c:/mingw/bin/../lib/<BR>gcc/mingw32/4.5.0/../../../;/mingw/lib/<BR>COLLECT_GCC_OPTIONS='-v'
'-o' 'a.out' '-shared-libgcc' '-mtune=i386'
'-march=i38<BR>6'<BR> c:/mingw/bin/../libexec/gcc/mingw32/4.5.0/collect2.exe
-Bdynamic -u ___register<BR>_frame_info -u ___deregister_frame_info -o a.out
c:/mingw/bin/../lib/gcc/mingw32<BR>/4.5.0/../../../crt2.o
c:/mingw/bin/../lib/gcc/mingw32/4.5.0/crtbegin.o
-Lc:/min<BR>gw/bin/../lib/gcc/mingw32/4.5.0 -Lc:/mingw/bin/../lib/gcc
-Lc:/mingw/bin/../lib/<BR>gcc/mingw32/4.5.0/../../../../mingw32/lib
-Lc:/mingw/bin/../lib/gcc/mingw32/4.5.<BR>0/../../.. -L/mingw/lib
C:/Windows/TEMP/cc-000001.o -lstdc++ -lmingw32 -lgcc_s -<BR>lgcc -lmoldname
-lmingwex -lmsvcrt -luser32 -lkernel32 -ladvapi32 -lshell32 -lmi<BR>ngw32
-lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt
c:/mingw/bin/../lib/gcc/mingw3<BR>2/4.5.0/crtend.o<BR>Info: resolving
std::cout by linking to __imp___ZSt4cout
(auto-import)<BR>c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe:
Warning: t<BR>ype of symbol `_main' changed from 32 to 512 in
C:/Windows/TEMP/cc-000001.o<BR>c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe:
warning: a<BR>uto-importing has been activated without --enable-auto-import
specified on the c<BR>ommand line.<BR>This should work unless it involves
constant data structures referencing symbols<BR> from auto-imported
DLLs.<BR>C:/Windows/TEMP/cc-000001.o:fake:(.text+0x14): undefined reference to
`__dso_han<BR>dle'<BR>C:/Windows/TEMP/cc-000001.o:fake:(.text+0x3e): undefined
reference to `__cxa_ate<BR>xit'<BR>collect2: ld returned 1 exit
status<BR>clang++: error: linker (via gcc) command failed with exit code 1 (use
-v to see<BR>invocation)<BR></FONT></DIV>
<DIV><FONT face=Calibri>And here is the source file.</FONT></DIV>
<DIV><FONT face=Calibri>#include <iostream><BR>using namespace std;<BR>int
main ()<BR>{cout <<"hello world";}<BR>Do I have to use the
llvm-link for the linking progress? If yes, then please tell me how do
I get clang to use it.</FONT></DIV></BODY></HTML>